Jekyll: using liquid tags in .md files

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:

<!-- layout.html file -->
<div class="panel">
<div class="content-container panel-wrapper">

{{Focus_content}}

</div><!--end content container-->
</div><!--end panel-->

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?

+4
source share
1 answer

. , , , - content, site page.

, , , .

+3

All Articles