mirror of
https://github.com/SebastianStork/kita.git
synced 2026-01-21 14:31: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
|
|
@ -12,12 +12,12 @@
|
|||
<section
|
||||
class="block-bg relative mb-4 rounded-lg p-4 first-of-type:mt-0 last-of-type:mb-0 active:scale-95 lg:mb-6 lg:p-6"
|
||||
>
|
||||
{% if page.extra.cover_image %}
|
||||
{% if page.extra.cover.image %}
|
||||
<figure class="mb-4 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