Add configuration to have post series for things like quickfacts and upcoming reversi
All checks were successful
Build Docker Image / docker (push) Successful in 19s

This commit is contained in:
Lol3rrr
2026-10-04 19:35:12 +02:00
parent 15377b9c66
commit b57796b7b5
8 changed files with 89 additions and 0 deletions

View File

@@ -13,6 +13,14 @@
</svg>
{% if page.date %}Published: {{ page.date | date(format="%F") }}{% endif %}
{% if page.taxonomies.series %}
<br>
{% set series_name = page.taxonomies.series | first %}
{% set series_term = get_taxonomy_term(kind="series", term=series_name) %}
Part {{ page.extra.series_order }} of the <a href="{{ series_term.permalink }}">{{ series_name }}</a> series
{% endif %}
{% endmacro meta %}
{% macro page_in_list(page) %}

20
templates/page.html Normal file
View File

@@ -0,0 +1,20 @@
{% extends "radion/templates/page.html" %}
{% block header %}
{{ super() }}
{% if page.taxonomies.series %}
{% set series_name = page.taxonomies.series | first %}
{% set series_term = get_taxonomy_term(kind="series", term=series_name) %}
<div class="series">
<a href="{{ series_term.permalink }}">
Series: {{ series_term.name }}
</a>
{% if page.extra.series_order %}
<span> · Part {{ page.extra.series_order }}</span>
{% endif %}
</div>
{% endif %}
{% endblock header %}

View File

@@ -0,0 +1,29 @@
{% extends "index.html" %}
{% block title %}Browse Series{% endblock title %}
{% block og_title %}Browse Series{% endblock og_title %}
{% block twitter_title %}Browse Series{% endblock twitter_title %}
{% block meta_description %}
<meta name="description" content="Discover articles organized by series in this site index." />
<meta property="og:description" content="Discover articles organized by series in this site index." />
<meta property="twitter:description" content="Discover articles organized by series in this site index." />
{% endblock meta_description %}
{% block content %}
{% block header %}
{{ super() }}
{% endblock header %}
<h1>Series</h1>
{% if terms %}
<ul>
{% for term in terms %}
<li>
<a href="{{ term.permalink | safe }}">{{ term.name }}</a>({{ term.pages | length }})
</li>
{% endfor %}
</ul>
{% endif %}
{% endblock content %}

View File

@@ -0,0 +1,23 @@
{% extends "index.html" %}
{% block title %}Posts in "{{ term.name }}"{% endblock title %}
{% block og_title %}Posts in "{{ term.name }}"{% endblock og_title %}
{% block twitter_title %}Posts in "{{ term.name }}"{% endblock twitter_title %}
{% block meta_description %}
<meta name="description" content="Discover articles from the '{{ term.name }}' series in this site index." />
<meta property="og:description" content="Discover articles from the '{{ term.name }}' series in this site index." />
<meta property="twitter:description" content="Discover articles from the '{{ term.name }}' series in this site index." />
{% endblock meta_description %}
{% block content %}
{% block header %}
{{ super() }}
{% endblock header %}
<h1>{{ term.name }} - Series</h1>
{% for page in term.pages %}
{{ post_macros::page_in_list(page=page) }}
{% endfor %}
{% endblock content %}