feat: page title custom
This commit is contained in:
@@ -6,7 +6,11 @@
|
||||
<th:block th:fragment="content">
|
||||
<article class="post">
|
||||
<header>
|
||||
<h1 class="post-title" th:text="#{page.archives.title}">Archives</h1>
|
||||
<h1 class="post-title"
|
||||
th:with="title=${theme.config.page.archives_title ?: page.archives.title ?: 'Archives'}"
|
||||
th:text="${title}">
|
||||
Archives
|
||||
</h1>
|
||||
</header>
|
||||
<div>
|
||||
<th:block th:each="archive : ${archives.items}">
|
||||
|
||||
@@ -6,7 +6,11 @@
|
||||
<th:block th:fragment="content">
|
||||
<article class="post">
|
||||
<header>
|
||||
<h1 class="post-title" th:text="#{page.categories.title}">Categories</h1>
|
||||
<h1 class="post-title"
|
||||
th:with="title=${theme.config.page.categories_title ?: page.categories.title ?: 'Categories'}"
|
||||
th:text="${title}">
|
||||
Categories
|
||||
</h1>
|
||||
</header>
|
||||
<div class="post-content">
|
||||
<ul>
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
<article class="post">
|
||||
<header>
|
||||
<h1 class="post-title"
|
||||
th:text="|#{page.category.title}: ${category.spec.displayName} [${category.status.visiblePostCount ?: 0}]|">
|
||||
th:with="title=${theme.config.page.category_title ?: page.category.title ?: 'Category'}"
|
||||
th:text="|${title}: ${category.spec.displayName} [${category.status.visiblePostCount ?: 0}]|">
|
||||
Category: Category name [n]
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
@@ -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'}">
|
||||
|
||||
+2
-1
@@ -7,7 +7,8 @@
|
||||
<article class="post">
|
||||
<header>
|
||||
<h1 class="post-title"
|
||||
th:text="|#{page.tag.title}: ${tag.spec.displayName} [${tag.status.visiblePostCount ?: 0}]|">
|
||||
th:with="title=${theme.config.page.tag_title ?: page.tag.title ?: 'Tag'}"
|
||||
th:text="|${title}: ${tag.spec.displayName} [${tag.status.visiblePostCount ?: 0}]|">
|
||||
Tag: Tag name [n]
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
+5
-1
@@ -6,7 +6,11 @@
|
||||
<th:block th:fragment="content">
|
||||
<article class="post">
|
||||
<header>
|
||||
<h1 class="post-title" th:text="#{page.tag.title}">Tags</h1>
|
||||
<h1 class="post-title"
|
||||
th:with="title=${theme.config.page.tags_title ?: page.tags.title ?: 'Tags'}"
|
||||
th:text="${title}">
|
||||
Tags
|
||||
</h1>
|
||||
</header>
|
||||
<div class="post-content">
|
||||
<ul>
|
||||
|
||||
Reference in New Issue
Block a user