oliverdavies.uk/source/_includes/project/image.html.twig
2017-07-11 07:28:37 +01:00

4 lines
137 B
Twig

{% if page.image -%}
<img src="/assets/images/projects/{{ page.image.name ?: page.image }}" alt="{{ page.image.alt }}">
{%- endif %}