refactor: refactor configuration logic
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user