I am working on a project using Jekyll. If you look on the Internet, it seems that you can use liquid tags in the markdown file. For some reason, fluid tags do not work in my markup files. I want to use a liquid capture tag to store text in a variable and then output that variable in the layout.html file. I have listed the corresponding code below.
page.md:
---
page: approach
layout: layout
---
{% capture Focus_content %}
Focus devices are awesome.
{% endcapture %}
Layout.html:
<div class="panel">
<div class="content-container panel-wrapper">
{{Focus_content}}
</div>
</div>
I know that Jekyll supports fluid patterns. Does anyone know why, when I define a variable in my markdown file, it does not display anything on a web page when I include it in an html file?
source
share