post tags and archive

This commit is contained in:
2025-12-17 21:44:42 +01:00
parent c8dfad292e
commit a767708fba
3 changed files with 43 additions and 1 deletions

32
archive.html Normal file
View File

@@ -0,0 +1,32 @@
---
layout: default
title: "Post Archive"
permalink: /archive.html
---
<h1>All my posts organized by their tags</h1>
<div id="tags-list">
{% for tag in site.tags %}
{% assign tag_name = tag | first %}
{% assign tag_name_pretty = tag_name | replace: "_", " " | capitalize %}
<div class="tag-list">
<div id="#{{ tag_name | slugize }}"></div>
<h3 class="post-list-heading line-bottom"> In #{{ tag_name }}: </h3>
<a name="{{ tag_name | slugize }}"></a>
<ul class="post-list post-list-narrow">
{% for post in site.tags[tag_name] %}
<li>
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
<b>
<a href="{{ post.url | relative_url }}">
{{ post.title | escape }}
</a>
</b> - <i>{{ post.date | date: date_format }}</i>
</li>
{% endfor %}
</ul>
</div>
{% endfor %}
</div>
<!-- Code partially taken from https://emmatheeng.github.io/projects/blog_setup/blog-tags.html -->