kita/templates/partials/page_info.html
Damien LaRocque a6cf030459
feat: add inject support
Co-authored-by: st1020 <me@st1020.com>
2024-10-05 23:12:49 +08:00

18 lines
577 B
HTML

<div class="text-sm antialiased opacity-60">
{% if page.date %}
<time>{{ page.date | date }}</time>
<span class="mx-1">&middot;</span>
<span>{{ page.reading_time }}min</span>
{% endif %}<!---->
{% if page.authors | length > 0 %}<!---->
{% set author = page.authors | join(sep=", ") %}<!---->
{% else %}<!---->
{% set author = config.author %}<!---->
{% endif %}<!---->
{% if author %}
<span class="mx-1">&middot;</span>
<span>{{ author }}</span>
{% endif %}
<!-- Page Info inject -->
{% include "injects/page_info.html" ignore missing %}
</div>