Beginning of fighting the tagging and paging system.

This commit is contained in:
Bun 2025-07-01 19:14:18 -04:00
parent 7fafd5b927
commit 2bea4c6dfd
11 changed files with 81 additions and 38 deletions

View file

@ -20,6 +20,7 @@
<a href="/images" class="sb_link pers">🖼️ images</a><br>
<a href="/hardware" class="sb_link pers">🖥️ hardware</a><br>
<a href="/software" class="sb_link pers">💾 software</a><br>
<a href="/tags" class="sb_link pers">🔎 all tags</a><br>
<br>
@ -30,6 +31,7 @@
<a href="https://pass.nixfox.ca" class="sb_link fox">🔒 vaultwarden</a><br>
<a href="https://git.nixfox.ca" class="sb_link fox">🗄️ forgejo</a><br>
<a href="https://hedgedoc.nixfox.ca" class="sb_link fox">🗒️ hedgedoc</a><br>
<a href="https://jelly.nixfox.ca" class="sb_link fox">📼 jellyfin</a><br>
<a href="https://live.nixfox.ca" class="sb_link fox">📹 owncast</a><br>
<a href="https://radio.nixfox.ca" class="sb_link fox">📻 icecast</a><br>
<a href="https://chat.nixfox.ca" class="sb_link fox">💬 matrix</a><br>

View file

@ -4,6 +4,6 @@
<h1 class="title">
{{ page.title }}
</h1>
<p class="subtitle"><strong>{{ page.date }}</strong></p>
<p class="subtitle"><strong>{{ page.date }} {{ page.taxonomies.tags }}</strong></p>
{{ page.content | safe }}
{% endblock content %}

View file

@ -8,7 +8,12 @@
<!-- If you are using pagination, section.pages will be empty.
You need to use the paginator object -->
{% for page in section.pages %}
<li><a href="{{ page.permalink | safe }}">{{ page.title }}</a> {{ page.date }}</li>
<li>
<a href="{{ page.permalink | safe }}">{{ page.title }}</a> - by {{ page.authors }},
{{ page.date }}
<br>
{{ page.description }}
</li>
{% endfor %}
</ul>
{% endblock content %}

View file

@ -1,8 +1,8 @@
{% extends "base.html" %}
{% block content %}
<h1 class="title">
{{ section.title }}
</h1>
{{ section.content | safe }}
{% endblock content %}
{% if page.taxonomies.tags %}
tags:
{% for tag in page.taxonomies.tags %}
<a href='{{ get_taxonomy_url(kind="tags", name=tag) | safe }}'>{{ tag }}</a>
{% endfor %}
{% endif %}

View file

@ -0,0 +1,30 @@
{% extends "base.html" %}
{% block content %}
{% block title %}
{{ config.title }} &middot; <a href="/tags">tags</a> &middot; {{ term.name }}
{% endblock title %}
<h1>{{ term.name }}</h1>
<div class="page-intro">
<p class="larger">view all <a href="/tags">tags</a>.</p>
</div>
<ul class="postlist">
{% for page in term.pages | sort(attribute="date") | reverse %}
<li class="postlist-item">
{% if page.date %}
<div class="date">
<time class="postlist-date">{{ page.date }}</time>
</div>
{% endif %}
<div class="postlist-head">
<h2><a class="postlist-title" href="{{ page.permalink }}">{{ page.title }}</a></h2>
</div>
<p class="postlist-description">{{ page.description }}</p>
</li>
{% endfor %}
</ul>
{% endblock content %}