html - Jekyll: Using liquid tags in .md files -
i working on project using jekyll. looking online, seems possible use liquid tags in markdown file. reason, liquid tags not working in markdown files. want use liquid "capture" tag store text in variable , output variable in layout.html file. have listed related code below. page.md: --- page: approach layout: layout --- {% capture focus_content %} focus devices 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 jekyll supports liquid templates. know why when define variable in markdown file, not output on webpage when include in html file? no way this. inside layout, things pages, posts , collections content , site , page variables. a capture made in page, post or collection not bubbling layout.