-
I'm seeing a conflict between jinja2content and yaml-metadata. Here is the sequence:
The result after step 5 is that the text of the macro, not the expansion of the macro, is what is rendered. I'm new to Pelican, so I haven't worked out how all of the internals work. Are there suggestions of where I should start looking to find the source of the conflict? Edited to add: Both plugins are at the head version, e.g., Step 3 screen captureStep 5 screen captureArticle MarkdownTitle: 'This is a normal post'
Trying to insert the macro here.
{% from 'macro.html' import genurl %}
{{ genurl() }}
Did it work?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Ah — we have a Highlander situation ("There can be only one"). Specifically, although Hmmm.... |
Beta Was this translation helpful? Give feedback.
-
I created a Pelican plugin to do exactly that—combine |
Beta Was this translation helpful? Give feedback.
I created a Pelican plugin to do exactly that—combine
YAMLMetadataReader
andJinjaMarkdownReader
in one Pelican Reader. This takes thecontent
output of the YAML Metadata Reader and uses it as input to the Jinja Markdown Reader. It returns thecontent
fromJinjaMarkdownReader
and themetadata
fromYAMLMetadataReader
. (It discards the metadata returned fromJinjaMarkdownReader
, which should effectively be none.)https://github.com/dltj/zygote-reader