kita/templates/page.html
Damien LaRocque fe3b3a6e14
feat: add optional cover image alt (#20)
Co-authored-by: st1020 <me@st1020.com>
2024-10-04 10:26:19 +08:00

38 lines
947 B
HTML

{% extends "index.html" %}<!---->
{% block main %}
<article>
<header class="mb-16">
<h1 class="!my-0 pb-2.5">{{ page.title }}</h1>
{% 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="{{ page.extra.cover.alt | default(value='cover') }}"
/>
</figure>
{% endif %}
<!-- TOC -->
{% include "partials/toc.html" %}<!---->
<!-- Content -->
<section>{{ page.content | safe }}</section>
<hr />
<!-- Post Taxonomies -->
{% include "partials/post_taxonomies.html" %}<!---->
<!-- Post Nav -->
{% include "partials/post_navigation.html" %}<!---->
<!-- Comment -->
{% if page.extra.comment | default(value=config.extra.comment) %}<!---->
{% include "partials/comment.html" %}<!---->
{% endif %}
</article>
{% endblock main %}