feat: simplify layout structure
This commit is contained in:
parent
c2f112a41b
commit
7c38b2fa4b
36 changed files with 47 additions and 72 deletions
19
src/_includes/layouts/post.html
Normal file
19
src/_includes/layouts/post.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
layout: "layouts/base"
|
||||
---
|
||||
|
||||
<article class="[ flow ]">
|
||||
<header class="[ flow ]" style="--flow-space: 1rem">
|
||||
{% from "macros/date.njk" import format %}
|
||||
{{ format(date) }}
|
||||
<h1>{{ title }}</h1>
|
||||
<ul class="[ categories ] [ cluster list-none p-0 ]">
|
||||
{% for tag in tags | filter(["post"]) %}
|
||||
<li class="[ flex gap-0.25 ]">
|
||||
<a href="/tags/{{ tag | slugify }}">{{ tag }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</header>
|
||||
{{ content | safe }}
|
||||
</article>
|
Loading…
Add table
Add a link
Reference in a new issue