I’ve got a Markdown-formatted sidebar that I’d like to show up in my Jekyll blog. I’d previously tried to include it like {% include sidebar.markdown %} but it wouldn’t actually render the Markdown. I can successfully include it like:
{% capture sidebar %}{% include sidebar.markdown %}{% endcapture %}
{{ sidebar | markdownify }}
and although this is a manageable solution, I’d prefer a more elegant way of accomplishing this. Any ideas? Thanks in advance!
Jekyll now supports writing simple plugins to add tags, converters, or generators. Take a look at http://jekyllrb.com/docs/plugins/ for details.