diff --git a/eleventy.config.js b/eleventy.config.js index ff9f68f..f772738 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -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", () => { diff --git a/package-lock.json b/package-lock.json index 44f2aa2..f322108 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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, diff --git a/package.json b/package.json index 0c1b8fd..7a9a7ab 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/public/css/index.css b/public/css/index.css index b7fa5ad..05d185c 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -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; }