index: add elif for description in absence of image
commit924e51066afca6dace3ee5a92458fc7a19688b9d
authorJosh Lehman <josh@starcity.com>
dateFri 30 Oct 2020, 17:05 (6 years ago)
parent0574d4b
templates/index.html+2
@@ -137,6 +137,8 @@
137137 <h2 class="f5 fw6 mt0 mb1">{{ page.title }}</h2>
138138 {% if page.extra.image %}
139139 <img class="db mv2 obj-cover h4 w-50 ba" src="{{ page.extra.image }}" />
140+ {% elif page.extra.description %}
141+ <p class="lh-copy mt1">{{ page.extra.description }}</p>
140142 {% endif %}
141143 <time class="mono f6">{{ page.date | date(format="~%Y.%-m.%-d") }}</time>
142144 <span class="mono f6">