mirror of
https://github.com/SebastianStork/kita.git
synced 2026-01-21 13:21:35 +01:00
feat: add optional cover image alt (#20)
Co-authored-by: st1020 <me@st1020.com>
This commit is contained in:
parent
11028d729f
commit
fe3b3a6e14
4 changed files with 10 additions and 9 deletions
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue