Replies: 1 comment 2 replies
-
|
This worked locally for me ---
title: HOME
eleventyComputed:
excerpt: |
## {{ title }} subheading
This is some content.
Linebreaks?
Or multi-blank lines for a line break?
author: pdehaan
---
# {{ title }}
{{ excerpt }}Which generated the following output: <h1>HOME</h1>
<h2>HOME subheading</h2>
<p>This is some content.
Linebreaks?</p>
<p>Or multi-blank lines for a line break?</p>UPDATE: Pushed my demo to https://github.com/pdehaan/11ty-1573-frontmatter-multiline |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All
Newbie here. Does anybody know how to include line breaks in the data of a variable in the Front Matter of a markdown file?
I tried the Indent Code Block in this link https://www.11ty.dev/docs/languages/markdown/ and it didn't work.
Tried using a vertical | as per this link https://discourse.getgrav.org/t/multi-line-strings-in-frontmatter/1226/5 and it also didn't work.
https://stackoverflow.com/questions/3790454/how-do-i-break-a-string-in-yaml-over-multiple-lines
Thank you very much
Beta Was this translation helpful? Give feedback.
All reactions