mirror of
https://github.com/SebastianStork/kita.git
synced 2026-01-21 14:31:35 +01:00
feat: add optional cover image
This commit is contained in:
parent
9c8ad9fd2d
commit
c900940ca2
7 changed files with 97 additions and 56 deletions
|
|
@ -12,6 +12,16 @@
|
|||
<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 %}
|
||||
<figure class="mb-4 mt-0">
|
||||
<img
|
||||
class="h-auto w-full rounded-lg"
|
||||
src="{{ get_url(path=page.extra.cover_image) }}"
|
||||
alt="cover"
|
||||
/>
|
||||
</figure>
|
||||
{% endif %}<!---->
|
||||
|
||||
<h2 class="!my-0 pb-1 font-bold !leading-none">{{ page.title }}</h2>
|
||||
|
||||
<div class="not-prose my-1 truncate">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue