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
+9 -11
View File
@@ -1,16 +1,14 @@
{{ define "search" }}
{{ template "header" . }}
{% extends "base.html" %}
{% block content %}
<section class="content results">
{{ if not .Data.Results.Entries }}
<h2>{{ .L.T "public.noResultsTitle" }}</h2>
{% if not results.entries or results.entries | length == 0 %}
<h2>{{ t(key="public.noResultsTitle") }}</h2>
<p>
{{ .L.T "public.noResults" }}
{{ t(key="public.noResults") }}
</p>
{{ else }}
{{ template "results" . }}
{{ end }}
{% else %}
{% include "results.html" %}
{% endif %}
</section>
{{ template "footer" . }}
{{ end }}
{% endblock %}