Refactor all templates to dictpress v5 (Rust/Tera templates).

This commit is contained in:
2026-03-26 14:59:30 +05:30
parent c07b8331c3
commit b13a23bbc4
22 changed files with 1032 additions and 1585 deletions
+13 -4
View File
@@ -1,4 +1,13 @@
{{ define "index" }}
{{ template "header" . }}
{{ template "footer" . }}
{{ end }}
{% extends "base.html" %}
{% block content %}
<section class="stats align-center" aria-label="Statistics">
<dl class="stats-list hstack justify-center">
{%- for lang_code, count in consts.stats.languages -%}
{%- set lang_name = langs[lang_code].name -%}
<div><dt>{{ lang_name }}</dt> <dd><strong>{{ count }}</strong> {{ t(key="public.statsEntries") }}</dd></div>
{%- endfor -%}
<div><dt>{{ t(key="public.statsDefs") }}</dt> <dd><strong>{{ consts.stats.relations }}</strong></dd></div>
</dl>
</section>
{% endblock %}