refactor: ♻️ move post meta into importable macro
This commit is contained in:
parent
9f7387c54b
commit
1ebb0e7226
3 changed files with 22 additions and 32 deletions
|
@ -5,22 +5,8 @@ layout: base.njk
|
|||
<article class="prose prose-slate mx-auto md:prose-lg lg:prose-xl dark:prose-invert prose-headings:font-normal prose-strong:text-inherit prose-li:marker:!text-inherit prose-th:font-bold prose-img:rounded-3xl">
|
||||
<h1 class="text-4xl">{{ title }}</h1>
|
||||
<aside class="not-prose space-y-4 text-base">
|
||||
<ul class="flex flex-wrap items-center gap-4 *:inline-flex *:items-center *:gap-1 *:*:stroke-sky-600">
|
||||
<li>
|
||||
{% lucide "calendar", {"size": "20"} %}
|
||||
<time datetime="{{ page.date | isoDate }}" title="{{ page.date | longDate }}">
|
||||
{{ page.date | readableDate }}
|
||||
</time>
|
||||
</li>
|
||||
<li>
|
||||
{% lucide "user", {"size": "20"} %}
|
||||
<a href="{{ author.href }}">{{ author.name }}</a>
|
||||
</li>
|
||||
<li>
|
||||
{% lucide "glasses", {"size": "20"} %}
|
||||
{{ content | readingtime }}
|
||||
</li>
|
||||
</ul>
|
||||
{%- from 'postmeta.macro.njk' import postmeta %}
|
||||
{{ postmeta({ date: page.date, author: author, content: content}) }}
|
||||
{% if tags.length > 0 %}
|
||||
<ul class="flex gap-1">
|
||||
{% for tag in tags %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue