This commit is contained in:
parent
433a7901f9
commit
b0f86672a0
|
@ -12,7 +12,7 @@ import { eleventyImageTransformPlugin } from "@11ty/eleventy-img";
|
||||||
|
|
||||||
|
|
||||||
import pluginDrafts from "./eleventy.config.drafts.js";
|
import pluginDrafts from "./eleventy.config.drafts.js";
|
||||||
import pluginFonts from "./eleventy.config.fonts.js";
|
import markdownItAbbr from "markdown-it-abbr/dist/markdown-it-abbr.js";
|
||||||
|
|
||||||
/** @param {import('@11ty/eleventy').UserConfig} eleventyConfig */
|
/** @param {import('@11ty/eleventy').UserConfig} eleventyConfig */
|
||||||
export default async function (eleventyConfig) {
|
export default async function (eleventyConfig) {
|
||||||
|
@ -109,12 +109,13 @@ export default async function (eleventyConfig) {
|
||||||
permalink: markdownItAnchor.permalink.ariaHidden({
|
permalink: markdownItAnchor.permalink.ariaHidden({
|
||||||
placement: "after",
|
placement: "after",
|
||||||
class: "header-anchor",
|
class: "header-anchor",
|
||||||
symbol: "#",
|
symbol: "@",
|
||||||
ariaHidden: false,
|
ariaHidden: false,
|
||||||
}),
|
}),
|
||||||
level: [1,2,3,4],
|
level: [1,2,3,4],
|
||||||
slugify: eleventyConfig.getFilter("slugify")
|
slugify: eleventyConfig.getFilter("slugify")
|
||||||
});
|
});
|
||||||
|
mdLib.use(markdownItAbbr);
|
||||||
});
|
});
|
||||||
|
|
||||||
eleventyConfig.addShortcode("currentBuildDate", () => {
|
eleventyConfig.addShortcode("currentBuildDate", () => {
|
||||||
|
|
7
package-lock.json
generated
7
package-lock.json
generated
|
@ -11,6 +11,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@11ty/eleventy": "^3.0.0",
|
"@11ty/eleventy": "^3.0.0",
|
||||||
"@11ty/eleventy-img": "^4.0.2",
|
"@11ty/eleventy-img": "^4.0.2",
|
||||||
|
"markdown-it-abbr": "^2.0.0",
|
||||||
"ttf2woff2": "^6.0.1"
|
"ttf2woff2": "^6.0.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -1904,6 +1905,12 @@
|
||||||
"markdown-it": "bin/markdown-it.mjs"
|
"markdown-it": "bin/markdown-it.mjs"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/markdown-it-abbr": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/markdown-it-abbr/-/markdown-it-abbr-2.0.0.tgz",
|
||||||
|
"integrity": "sha512-of7C8pXSjXjDojW4neNP+jD7inUYH/DO0Ca+K/4FUEccg0oHAEX/nfscw0jfz66PJbYWOAT9U8mjO21X5p6aAw==",
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
"node_modules/markdown-it-anchor": {
|
"node_modules/markdown-it-anchor": {
|
||||||
"version": "8.6.7",
|
"version": "8.6.7",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@11ty/eleventy": "^3.0.0",
|
"@11ty/eleventy": "^3.0.0",
|
||||||
"@11ty/eleventy-img": "^4.0.2",
|
"@11ty/eleventy-img": "^4.0.2",
|
||||||
|
"markdown-it-abbr": "^2.0.0",
|
||||||
"ttf2woff2": "^6.0.1"
|
"ttf2woff2": "^6.0.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
:root {
|
:root {
|
||||||
/* --font-family: -apple-system, system-ui, sans-serif; */
|
/* --font-family: -apple-system, system-ui, sans-serif; */
|
||||||
--font-family: SometypeMono;
|
--font-family: SometypeMono;
|
||||||
--font-family-monospace: Consolas, Menlo, Monaco, Andale Mono WT, Andale Mono, Lucida Console, Lucida Sans Typewriter, DejaVu Sans Mono, Bitstream Vera Sans Mono, Liberation Mono, Nimbus Mono L, Courier New, Courier, monospace;
|
--font-family-monospace: SometypeMono;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Theme colors */
|
/* Theme colors */
|
||||||
|
@ -275,5 +275,5 @@ h2 + .header-anchor {
|
||||||
}
|
}
|
||||||
h1, h2, h3 {
|
h1, h2, h3 {
|
||||||
font-family: WO3;
|
font-family: WO3;
|
||||||
letter-spacing: .2rem;
|
letter-spacing: .1rem;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue