Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
fixes #9 adds a raw filter so images can be used in in page style tags
Browse files Browse the repository at this point in the history
  • Loading branch information
cdowdy committed Feb 23, 2017
1 parent 13fe4be commit 0d67073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/global.macros.twig
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ src="/img{{ srcImg }}"

{# test out for not found and single image right now #}
{% macro setImg( srcImg, sourceExists, notFoundImg ) %}
{% if sourceExists %}/img{{ srcImg }}{% else %}
{% if sourceExists %}/img{{ srcImg|raw }}{% else %}
{{ notFoundImg }}{% endif %}
{% endmacro setImg %}

Expand Down

0 comments on commit 0d67073

Please sign in to comment.