diff --git a/_cache/webmentions.json b/_cache/webmentions.json index ed7175f547..74bd243726 100644 --- a/_cache/webmentions.json +++ b/_cache/webmentions.json @@ -1,5 +1,5 @@ { - "lastFetched": "2024-11-29T16:24:09.297Z", + "lastFetched": "2024-11-29T17:34:54.231Z", "children": [ { "type": "entry", diff --git a/content/.obsidian/workspace.json b/content/.obsidian/workspace.json index 7aa86eacc7..8d80b07ea2 100644 --- a/content/.obsidian/workspace.json +++ b/content/.obsidian/workspace.json @@ -13,12 +13,40 @@ "state": { "type": "markdown", "state": { - "file": "presentations.md", + "file": "blog/2024-11-29-rebuild.md", "mode": "source", "source": false }, "icon": "lucide-file", - "title": "presentations" + "title": "2024-11-29-rebuild" + } + }, + { + "id": "0b979cb3b3ae51e5", + "type": "leaf", + "state": { + "type": "markdown", + "state": { + "file": "blog/2024-09-08-time.md", + "mode": "source", + "source": false + }, + "icon": "lucide-file", + "title": "2024-09-08-time" + } + }, + { + "id": "fdb65c333ea9e85d", + "type": "leaf", + "state": { + "type": "markdown", + "state": { + "file": "blog/2023-08-19-time-and-loss.md", + "mode": "source", + "source": false + }, + "icon": "lucide-file", + "title": "2023-08-19-time-and-loss" } } ] @@ -165,12 +193,14 @@ }, "active": "6bf9b4c0dd8b4ce0", "lastOpenFiles": [ - "blog/2024-10-01-passivity.md", "blog/2024-09-08-time.md", - "blog/2024-08-03-bike.md", + "blog/2023-08-19-time-and-loss.md", + "blog/2024-11-29-rebuild.md", + "blog/2024-10-01-passivity.md", "index.njk", - "blog.njk", "presentations.md", + "blog/2024-08-03-bike.md", + "blog.njk", "projects.md", "about/index.md", "blog/2017-10-12-desire-paths.md", @@ -192,8 +222,6 @@ "blog/2024-03-09-limit.md", "blog/2024-05-07-happening.md", "blog/2024-05-27-rebrand.md", - "blog/2024-05-28-polarization.md", - "blog/2024-06-24-apophenia.md", - "planned-obsolescence.md" + "blog/2024-05-28-polarization.md" ] } \ No newline at end of file diff --git a/content/blog/2024-11-29-rebuild.md b/content/blog/2024-11-29-rebuild.md new file mode 100644 index 0000000000..c06e2c7adc --- /dev/null +++ b/content/blog/2024-11-29-rebuild.md @@ -0,0 +1,17 @@ +--- +title: Rebuilding +date: 2024-11-29T11:35:27-05:00 +permalink: /rebuilding/ +tags: + - tinkering +--- +At some point a month or so ago (probably more "or so" given my recent [what is time even](/time-is-weird) challenges), I upgraded the innards of this site from Eleventy 2.0 to Eleventy 3.0. This turned out to require a moderate amount of tinkering in order to get things shifted from [the older version's use of CommonJS to the newer one's use of ESM](https://www.11ty.dev/docs/cjs-esm/). I managed to get it about 95% sorted fairly quickly, however. The one real holdout was my webmentions functionality, which I was having a hard time getting to work in the new iteration.[^1] As my current gig does not afford me a lot of tinkering time, I had to put that aside, figuring that the site was at least doing the basics, and that would do for now. + +I turned back to trying to fix webmentions yesterday, and finally managed to get the data retrieved and cached and munged and filtered in all the ways, such that it landed on the right pages. But it looked *terrible*. And so there were many more hours of frustration while I tried to figure out why the new [eleventy-image](https://www.11ty.dev/docs/plugins/image/) and its fancy transform were causing such trouble in the rendering of webmention avatars. + +Except they weren't. It turned out that it was a basic CSS problem -- as in the css file that styles webmentions was somehow not getting included in the build process. And now it is. + +So: a post to celebrate a successful rebuild! And perhaps even to inspire a bit more writing in the weeks ahead. + +[^1]: Actually, there's one more thing: a footnote rendering issue. So that's next up for this afternoon's exploration.[^2] +[^2]: And I think that's now fixed as well. \ No newline at end of file diff --git a/eleventy.config.js b/eleventy.config.js index 342b47daa4..7828033fcd 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -3,6 +3,8 @@ import { feedPlugin } from "@11ty/eleventy-plugin-rss"; import pluginSyntaxHighlight from "@11ty/eleventy-plugin-syntaxhighlight"; import pluginNavigation from "@11ty/eleventy-navigation"; import { eleventyImageTransformPlugin } from "@11ty/eleventy-img"; +import markdownIt from "markdown-it"; +import markdownItFootnote from "markdown-it-footnote"; import pluginFilters from "./_config/filters.js"; @@ -18,6 +20,16 @@ export default async function(eleventyConfig) { } }); + let options = { + html: true, + breaks: true, + linkify: true, + }; + + let markdownLib = markdownIt(options).use(markdownItFootnote); + + eleventyConfig.setLibrary("md", markdownLib); + // Copy the contents of the `public` folder to the output folder // For example, `./public/css/` ends up in `_site/css/` eleventyConfig diff --git a/package.json b/package.json index 50f51a66ff..27cd3d6310 100644 --- a/package.json +++ b/package.json @@ -52,6 +52,7 @@ "@zachleat/heading-anchors": "^1.0.1", "dotenv": "^16.3.1", "lodash-es": "^4.17.21", + "markdown-it-footnote": "^4.0.0", "sanitize-html": "^2.13.1" } }