{% if html_id=="footer-html" %} {# link tag does not work in footer in wkhtmltopdf, so this is a workaround to include bootstrap and still have auto footer height working #} {% else %} {% for tag in head -%} {{ tag | string }} {%- endfor %} {% endif %} {% for tag in styles -%} {{ tag | string }} {%- endfor %}