mirror of
https://github.com/SebastianStork/kita.git
synced 2026-01-21 13:21: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
|
|
@ -6,6 +6,17 @@
|
|||
{% include "partials/page_info.html" %}
|
||||
</header>
|
||||
|
||||
{% 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"
|
||||
/>
|
||||
</figure>
|
||||
{% endif %}
|
||||
<!---->
|
||||
|
||||
{% if page.toc %}
|
||||
<div class="block-bg mb-12 flex rounded-lg p-2 text-lg">
|
||||
<details>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue