Add image from front matter

This commit is contained in:
TheThomaas 2023-09-13 23:07:09 +02:00
parent a3e9e978d6
commit f10753a499

View file

@ -1,6 +1,6 @@
<section id="{{ subpage.data.title | slug }}" class="{{ subpage.data.classes }}">
{% if subpage.data.img %}
<strong>img here</strong>
<img src="{{subpage.data.img.src}}" alt="{{subpage.data.img.alt}}">
{% endif %}
{% if subpage.data.showTitle != false %}
<h2>{{ subpage.data.title }}</h2>