Add a layout for posts

This commit is contained in:
Neil Brommer 2023-07-08 16:50:36 -07:00
parent 69b423b565
commit a79f462669
4 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,19 @@
---
layout: layouts/layout.njk
---
<dl class="tags">
<dt>
<svg class="icon">
<use href="/images/feather-sprite.svg#tag" />
</svg>
Tags
</dt>
{% for tag in tags %}
{% if tag != "posts" %}
<dd>{{ tag }}</dd>
{% endif %}
{% endfor %}
</dl>
{{ content | safe }}

View file

@ -16,3 +16,17 @@ dl {
margin-inline-start: 1em; margin-inline-start: 1em;
} }
} }
dl.tags {
dt {
display: inline-flex;
flex-direction: row;
align-items: center;
gap: 0.25em;
padding: 0.25em 0;
}
dd {
display: inline;
}
}

View file

@ -1,5 +1,6 @@
--- ---
title: Posts title: Posts
layout: layouts/layout.njk
eleventyNavigation: eleventyNavigation:
key: Posts key: Posts
icon: edit-2 icon: edit-2

View file

@ -1,4 +1,5 @@
{ {
"layout": "layouts/post-layout.njk",
"tags": [ "posts" ], "tags": [ "posts" ],
"date": "git Created" "date": "git Created"
} }