From 4c5309dd175d447e7b2c52adc646439ec795ca2b Mon Sep 17 00:00:00 2001 From: Lewis Dale Date: Wed, 10 Jan 2024 08:44:53 +0000 Subject: [PATCH] Hack around the missing `---` characters in code block --- src/blog/posts/2024/1/detecting-markdown-titles-eleventy.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/blog/posts/2024/1/detecting-markdown-titles-eleventy.md b/src/blog/posts/2024/1/detecting-markdown-titles-eleventy.md index 3e4126e..d3b8320 100644 --- a/src/blog/posts/2024/1/detecting-markdown-titles-eleventy.md +++ b/src/blog/posts/2024/1/detecting-markdown-titles-eleventy.md @@ -11,6 +11,7 @@ I use [Obsidian](https://obsidian.md) for note-taking, and I'd love to publish t The main blocker is that Obsidian uses file slug/Markdown titles, whereas Eleventy requires the `title` to be set in frontmatter. Obsidian supports adding frontmatter, but it feels weird to have the title set in 2 different places. So here's a quick solution that parses titles out of the document body, and then uses it as the entry title. ```js +--- ---js { eleventyComputed: {