Hack around the missing --- characters in code block

This commit is contained in:
Lewis Dale 2024-01-10 08:44:53 +00:00
parent 299f67f0ad
commit 4c5309dd17

View File

@ -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: {