1
0
Fork 0

fix fonts, add markdown-it-abbr
Some checks failed
Build Blog / Build (push) Failing after 2m31s

This commit is contained in:
saji 2025-01-01 23:57:47 -06:00
parent 433a7901f9
commit b0f86672a0
4 changed files with 13 additions and 4 deletions

View file

@ -12,7 +12,7 @@ import { eleventyImageTransformPlugin } from "@11ty/eleventy-img";
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 */
export default async function (eleventyConfig) {
@ -109,12 +109,13 @@ export default async function (eleventyConfig) {
permalink: markdownItAnchor.permalink.ariaHidden({
placement: "after",
class: "header-anchor",
symbol: "#",
symbol: "@",
ariaHidden: false,
}),
level: [1,2,3,4],
slugify: eleventyConfig.getFilter("slugify")
});
mdLib.use(markdownItAbbr);
});
eleventyConfig.addShortcode("currentBuildDate", () => {

7
package-lock.json generated
View file

@ -11,6 +11,7 @@
"dependencies": {
"@11ty/eleventy": "^3.0.0",
"@11ty/eleventy-img": "^4.0.2",
"markdown-it-abbr": "^2.0.0",
"ttf2woff2": "^6.0.1"
},
"devDependencies": {
@ -1904,6 +1905,12 @@
"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": {
"version": "8.6.7",
"dev": true,

View file

@ -22,6 +22,7 @@
"dependencies": {
"@11ty/eleventy": "^3.0.0",
"@11ty/eleventy-img": "^4.0.2",
"markdown-it-abbr": "^2.0.0",
"ttf2woff2": "^6.0.1"
},
"devDependencies": {

View file

@ -2,7 +2,7 @@
:root {
/* --font-family: -apple-system, system-ui, sans-serif; */
--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 */
@ -275,5 +275,5 @@ h2 + .header-anchor {
}
h1, h2, h3 {
font-family: WO3;
letter-spacing: .2rem;
letter-spacing: .1rem;
}