feat: add optional cover image alt (#20)

Co-authored-by: st1020 <me@st1020.com>
This commit is contained in:
Damien LaRocque 2024-10-03 22:26:19 -04:00 committed by GitHub
parent 11028d729f
commit fe3b3a6e14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 9 deletions

View file

@ -6,12 +6,12 @@
{% include "partials/page_info.html" %}
</header>
{% if page.extra.cover_image %}<!---->
{% if page.extra.cover.image %}<!---->
<figure class="mb-12 mt-0">
<img
class="h-auto w-full rounded-lg"
src="{{ get_url(path=page.extra.cover_image) }}"
alt="cover"
src="{{ get_url(path=page.extra.cover.image) }}"
alt="{{ page.extra.cover.alt | default(value='cover') }}"
/>
</figure>
{% endif %}