As part of a process of writing papers, I usually have a markdown file in my repo - these render fine as part of the jekyll-build process, although mostly I'm just interested in rendering the HTML files I have.
Recently, I changed one of those markdown files to use a Jinja2 template to avoid some repetition. Jinja2 apaprently uses some similar syntax to Liquid. So when my template file has syntax like this:
{% macro make_binary_func(name, op) %}
// ... some stuff
{% endmacro %}
The jekyll-build breaks, complaining about:
Liquid Exception: Liquid syntax error (line 299): Unknown tag 'macro' in 3171_boost_lambda2/boost-lambda2.tpl
Which, sure - this isn't Liquid, so it's unsurprising that it complains. Liquid seems far more limited - doesn't seem to have a function/macro construct?
Is there a way for me to get jekyll-build to either ignore this file or just treat it as raw text and something not to be rendered? All I care about is that my html file shows up on github-pages properly.
Yeah, Liquid doesn't have macros. Maybe you're looking for Raw {% raw %} {% endraw %} ?