How to quote front-matter variables in main body #1098
-
As I want to create .md templates for re-use, I planned to put some properties into YAML front-matter then wrote a .md file like this: ---
......
property1: xxx
propertygroup: [xxx, yyy, zzz]
propertydict:
sub1: xxx
sub2: yyy
---
<!-- template.md -->
......
some text {{ Page.property1 }} and {{ Page.propertygroup[0] }}, {{ propertydict.sub1 }} Unfortunately, it didn't work. So how to quote the variables in front-matter correctly? Or should I take other extra actions to make it? Forgive my lack of knowledge about vue. Additional info about runtime
|
Beta Was this translation helpful? Give feedback.
Answered by
Mister-Hope
Sep 23, 2022
Replies: 1 comment 4 replies
-
$page.frontmatter.xxx |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
Mister-Hope
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$page.frontmatter.xxx