-
In order to avoid a ton of HTML in my markdown files, I am trying to sort of nest variables. Please bear with me as I have almost no clue what I'm doing. I have HTML code/files that are all unique to every I've tried two approaches. In HTML, I've tried something along the lines of:
Where The other approach was to have this in HTML:
Then a metatag on each page specifies what HTML file to include:
But this doesn't get parsed. It outputs verbatim So it appears that "nested" variables aren't supported, that an If anyone has any guidance, I would greatly appreciate it. I hope this post was clear. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
That does not seem too difficult. Could you try this?
There should be no need to "nest", since the content of curly braces is more or less Python syntax. (I am not sure what |
Beta Was this translation helpful? Give feedback.
That does not seem too difficult.
Could you try this?
{% include "path/to/" + nav_item.meta.uniquename %}
There should be no need to "nest", since the content of curly braces is more or less Python syntax.
(I am not sure what
nav_item
is, but I trust it is a good page descriptor?)