Refactor config reading code

This commit is contained in:
2026-09-05 03:19:12 +02:00
parent f991d3b110
commit 4351ea8e0d
13 changed files with 148 additions and 94 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
{% extends "base.html" %}
{% block title %}{% if page.label %}{{ page.label }} — {% endif %}{{ site.name }}{% if page.page_num > 1 %} — Page {{ page.page_num }}{% endif %}{% endblock %}
{% block title %}{% if page.label %}{{ page.label }} — {% endif %}{{ site.config.name }}{% if page.page_num > 1 %} — Page {{ page.page_num }}{% endif %}{% endblock %}
{% block head %}
{% if page.page_num > 1 %}<meta name="robots" content="noindex, follow">{% endif %}
@@ -12,12 +12,12 @@
{% block breadcrumb %}
{% if page.kind == "section" %}
<nav aria-label="breadcrumb">
<a href="{{ site.home_url() }}">{{ site.name }}</a>
<a href="{{ site.home_url() }}">{{ site.config.name }}</a>
{{ page.label }}
</nav>
{% elif page.kind == "tag" %}
<nav aria-label="breadcrumb">
<a href="{{ site.home_url() }}">{{ site.name }}</a>
<a href="{{ site.home_url() }}">{{ site.config.name }}</a>
<a href="{{ site.tags_url() }}">Tags</a>
{{ page.label }}
</nav>