Hack around the missing ---
characters in code block
This commit is contained in:
parent
299f67f0ad
commit
4c5309dd17
@ -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.
|
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
|
||||||
|
---
|
||||||
---js
|
---js
|
||||||
{
|
{
|
||||||
eleventyComputed: {
|
eleventyComputed: {
|
||||||
|
Loading…
Reference in New Issue
Block a user