mirror of
https://github.com/danog/sass-site.git
synced 2024-11-26 20:14:53 +01:00
More human-friendly hash slugs
This commit is contained in:
parent
1f2ea317bf
commit
430b08947f
@ -50,6 +50,7 @@
|
|||||||
"@rollup/plugin-inject": "^5.0.3",
|
"@rollup/plugin-inject": "^5.0.3",
|
||||||
"@rollup/plugin-node-resolve": "^15.0.2",
|
"@rollup/plugin-node-resolve": "^15.0.2",
|
||||||
"@rollup/plugin-terser": "^0.4.3",
|
"@rollup/plugin-terser": "^0.4.3",
|
||||||
|
"@sindresorhus/slugify": "^1.1.0",
|
||||||
"@types/jquery": "^3.5.16",
|
"@types/jquery": "^3.5.16",
|
||||||
"@types/jqueryui": "^1.12.17",
|
"@types/jqueryui": "^1.12.17",
|
||||||
"@types/markdown-it": "^12.2.3",
|
"@types/markdown-it": "^12.2.3",
|
||||||
@ -93,6 +94,7 @@
|
|||||||
},
|
},
|
||||||
"yarn-upgrade-all": {
|
"yarn-upgrade-all": {
|
||||||
"ignore": [
|
"ignore": [
|
||||||
|
"@sindresorhus/slugify",
|
||||||
"@types/node"
|
"@types/node"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ introduction: >
|
|||||||
complementary_content: |
|
complementary_content: |
|
||||||
<nav class="sl-c-list-navigation-wrapper" aria-label="Resources">
|
<nav class="sl-c-list-navigation-wrapper" aria-label="Resources">
|
||||||
|
|
||||||
## Resources
|
<h2>Resources</h2>
|
||||||
|
|
||||||
### [Jump Start Sass](https://amzn.to/2LKF0uR)
|
### [Jump Start Sass](https://amzn.to/2LKF0uR)
|
||||||
by Kitty Giraudel and Miriam Suzanne
|
by Kitty Giraudel and Miriam Suzanne
|
||||||
|
@ -6,7 +6,7 @@ introduction: >
|
|||||||
just browse here, go ahead, but we recommend you go install Sass first. [Go
|
just browse here, go ahead, but we recommend you go install Sass first. [Go
|
||||||
here](/install) if you want to learn how to get everything set up.
|
here](/install) if you want to learn how to get everything set up.
|
||||||
navigation: |
|
navigation: |
|
||||||
### Topics
|
<h3>Topics</h3>
|
||||||
|
|
||||||
<nav class="sl-c-list-navigation-wrapper">
|
<nav class="sl-c-list-navigation-wrapper">
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import slugify from '@sindresorhus/slugify';
|
||||||
import { Liquid } from 'liquidjs';
|
import { Liquid } from 'liquidjs';
|
||||||
import markdown from 'markdown-it';
|
import markdown from 'markdown-it';
|
||||||
import markdownAnchor from 'markdown-it-anchor';
|
import markdownAnchor from 'markdown-it-anchor';
|
||||||
@ -23,6 +24,7 @@ export const markdownEngine = markdown({
|
|||||||
.use(markdownAnchor, {
|
.use(markdownAnchor, {
|
||||||
level: 2,
|
level: 2,
|
||||||
permalink: renderPermalink,
|
permalink: renderPermalink,
|
||||||
|
slugify: (s) => slugify(s),
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -7,7 +7,7 @@ introduction: >
|
|||||||
lagging behind [Dart Sass](/dart-sass) in features and CSS compatibility.
|
lagging behind [Dart Sass](/dart-sass) in features and CSS compatibility.
|
||||||
**LibSass is now deprecated**—new projects should use Dart Sass instead.
|
**LibSass is now deprecated**—new projects should use Dart Sass instead.
|
||||||
navigation: |
|
navigation: |
|
||||||
## Wrappers
|
<h2>Wrappers</h2>
|
||||||
|
|
||||||
<nav class="sl-c-list-navigation-wrapper">
|
<nav class="sl-c-list-navigation-wrapper">
|
||||||
|
|
||||||
@ -29,7 +29,7 @@ navigation: |
|
|||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
complementary_content: |
|
complementary_content: |
|
||||||
## Resources
|
<h2>Resources</h2>
|
||||||
|
|
||||||
- [Lightning fast Sass compiling with libsass, Node-sass and
|
- [Lightning fast Sass compiling with libsass, Node-sass and
|
||||||
Grunt-sass](https://benfrain.com/lightning-fast-sass-compiling-with-libsass-node-sass-and-grunt-sass/)
|
Grunt-sass](https://benfrain.com/lightning-fast-sass-compiling-with-libsass-node-sass-and-grunt-sass/)
|
||||||
|
@ -2,7 +2,7 @@ layout: has_navigation
|
|||||||
navigation: |
|
navigation: |
|
||||||
<nav class="sl-c-list-navigation-wrapper">
|
<nav class="sl-c-list-navigation-wrapper">
|
||||||
|
|
||||||
### [Style Guide](/styleguide)
|
<h3><a href="/styleguide">Style Guide</a></h3>
|
||||||
|
|
||||||
- [Brand](/styleguide/brand)
|
- [Brand](/styleguide/brand)
|
||||||
- [Color](/styleguide/color)
|
- [Color](/styleguide/color)
|
||||||
|
@ -1797,7 +1797,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@sindresorhus/slugify@npm:^1.1.2":
|
"@sindresorhus/slugify@npm:^1.1.0, @sindresorhus/slugify@npm:^1.1.2":
|
||||||
version: 1.1.2
|
version: 1.1.2
|
||||||
resolution: "@sindresorhus/slugify@npm:1.1.2"
|
resolution: "@sindresorhus/slugify@npm:1.1.2"
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -6904,6 +6904,7 @@ __metadata:
|
|||||||
"@rollup/plugin-inject": ^5.0.3
|
"@rollup/plugin-inject": ^5.0.3
|
||||||
"@rollup/plugin-node-resolve": ^15.0.2
|
"@rollup/plugin-node-resolve": ^15.0.2
|
||||||
"@rollup/plugin-terser": ^0.4.3
|
"@rollup/plugin-terser": ^0.4.3
|
||||||
|
"@sindresorhus/slugify": ^1.1.0
|
||||||
"@types/jquery": ^3.5.16
|
"@types/jquery": ^3.5.16
|
||||||
"@types/jqueryui": ^1.12.17
|
"@types/jqueryui": ^1.12.17
|
||||||
"@types/markdown-it": ^12.2.3
|
"@types/markdown-it": ^12.2.3
|
||||||
|
Loading…
Reference in New Issue
Block a user