refactor: refactor configuration logic

This commit is contained in:
Erzbir
2025-11-18 13:11:05 +08:00
parent 7bf2286776
commit 8adc06c65a
11 changed files with 116 additions and 101 deletions
+2 -2
View File
@@ -7,7 +7,7 @@
<article class="post">
<header>
<h1 class="post-title"
th:with="title=${theme.config.page.archives_title ?: page.archives.title ?: 'Archives'}"
th:with="title=${theme.config.archives_page.title ?: page.archives.title ?: 'Archives'}"
th:text="${title}">
Archives
</h1>
@@ -28,7 +28,7 @@
<a data-pjax th:href="@{${post.status.permalink}}"><span class="post-list-title"
th:text="${post.spec.title}">Post Title</span></a>
<th:block th:replace="~{modules/tag-list(post = ${post})}"
th:if="${theme.config.page.archives_tags}"/></div>
th:if="${theme.config.page.show_tags}"/></div>
</li>
</th:block>
</ul>