matrix.org/templates/taxonomy_single.html
Kim Brose 91838ca1b3
Blog categories update and related misc fixes (#2724)
* alt text for the atom feed link is atom, not rss

* show all categories/authors on blog category/author lists

* add icon and clearer text to taxonomy feeds

* only link to ~~more~~ all posts when there are more

* update matrix conf blog entry tags

ref #2661

* unify Neil (Johnson) blog author

* add proper taxonomy plurals

* sort blog post categories when displaying

* fix old blog posts

* update Matrix Conf blog post categories

ref #2661

* categorize and update holiday specials

* categorize and update FOSDEM blog posts

* update some blog post categories

* switch blog date format to YYYY-MM-DD

* add dates to category/author list view

* don't show time on blog posts

Signed-off-by: HarHarLinks <2803622+HarHarLinks@users.noreply.github.com>

---------

Signed-off-by: HarHarLinks <2803622+HarHarLinks@users.noreply.github.com>
2025-05-23 12:28:04 +02:00

62 lines
2.6 KiB
HTML

{% extends "skel.html" %}
{% block head_extra %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ term.permalink | safe }}atom.xml">
{% endblock head_extra %}
{% block html_title %}Matrix.org - {{ term.name }}{% endblock html_title %}
{% block content %}
<div id="taxonomy-single">
<div class="content">
<header>
<h1>{{ term.name }}</h1>
{% set taxonomy = load_data(path="taxonomy.toml") %}
{{ term.pages | length }} posts tagged with "{{ term.name }}" <a href="/{{ taxonomy.name }}">(See all {{
taxonomy.plurals[taxonomy.name] | default(value=taxonomy.name)
}})</a>
{% if taxonomy.feed %}
<h2>
<small><a href="{{ term.permalink | safe }}atom.xml"><img width="10px" height="10px" src="/assets/rss.svg" alt="Atom"> Category Atom Feed</a></small>
</h2>
{% endif %}
</header>
{% for page in paginator.pages %}
<article class="post">
<header>
<h2><a href="{{ page.permalink }}" title="{{ page.title }}">{{ page.title }}</a></h2>
<span>
{{ page.date | date(format="%Y-%m-%d") }}
{% if page.taxonomies.category %}
{% for category in page.taxonomies.category | sort %}
<a href="/category/{{ category | slugify }}">
{{- category -}}
</a>
{%- if not loop.last %}, {% endif %}{% endfor %}
{% endif %}
{% for author in page.taxonomies.author %}
<a href="/author/{{ author | default (value=['unknown author']) | slugify }}">
{{- author | default (value=["unknown author"]) -}}
</a>
{%- if not loop.last %}, {% endif %}
{% endfor %}
</span>
{% if page.updated -%}
<br>
<small>Last update: {{ page.updated | date(format="%Y-%m-%d %H:%M") }}</small>
{%- endif %}
</header>
<div>
{% if page.summary %}
{{ page.summary | safe }}
<p><a href="{{ page.path | safe }}#continue-reading">Continue reading…</a></p>
{% else %}
{{ page.content | safe }}
{% endif %}
</div>
</article>
{% endfor %}
{% include "includes/pagination.html" %}
</div>
</div>
{% endblock content %}