feat: page title custom

This commit is contained in:
Erzbir
2025-11-15 02:08:02 +08:00
parent 5f74797c02
commit c3b3299cad
7 changed files with 52 additions and 6 deletions
+5 -1
View File
@@ -4,7 +4,11 @@
<th:block th:fragment="content">
<article class="post">
<header>
<h1 class="post-title" th:text="#{page.links.title}">Links</h1>
<h1 class="post-title"
th:with="title=${theme.config.page.links_title ?: page.links.title ?: 'Links'}"
th:text="${title}">
Links
</h1>
</header>
<section class="post-content link-section" th:each="group : ${groups}">
<h2 th:text="${!#strings.isEmpty(group.spec.displayName) ? group.spec.displayName:'links'}">