Add template blocks support to Markdown files #2892
Labels
enhancement
needs-votes
A feature request on the backlog that needs upvotes or downvotes. Remove this label when resolved.
Is your feature request related to a problem? Please describe.
I've struggled so many times with creating an end-user-friendly setup with content blocks inside
index.md
that I think this could be someone else's issue too.Describe the solution you'd like
Use template blocks in Markdown files, e.g. Pug, Nunjucks, Liquid
block
syntaxI suggest using MDC-like syntax:
# Blocks! ::motd Hello World! ::
layout.njk
output
Describe alternatives you've considered
Using front matter data passed to layouts by cascading. This is not optimal due to lack of syntax highlighting for markdown. These variables are intended for simple strings, not code-like data.
Additional context
No response
The text was updated successfully, but these errors were encountered: