feat: page title custom
This commit is contained in:
@@ -25,6 +25,34 @@ spec:
|
|||||||
label: 启用 PJAX
|
label: 启用 PJAX
|
||||||
help: 是否启用 PJAX, 默认关闭
|
help: 是否启用 PJAX, 默认关闭
|
||||||
value: false
|
value: false
|
||||||
|
- group: page
|
||||||
|
label: 页面配置
|
||||||
|
formSchema:
|
||||||
|
- $formkit: text
|
||||||
|
name: archives_title
|
||||||
|
label: 归档页标题自定义
|
||||||
|
value:
|
||||||
|
- $formkit: text
|
||||||
|
name: categories_title
|
||||||
|
label: 分类页(复数) 标题自定义
|
||||||
|
value:
|
||||||
|
- $formkit: text
|
||||||
|
name: category_title
|
||||||
|
label: 分类页标题自定义
|
||||||
|
value:
|
||||||
|
- $formkit:
|
||||||
|
name: tags_title
|
||||||
|
label: 标签页(复数) 标题自定义
|
||||||
|
value:
|
||||||
|
- $formkit:
|
||||||
|
name: tag_title
|
||||||
|
label: 标签页标题自定义
|
||||||
|
value:
|
||||||
|
- $formkit: text
|
||||||
|
name: links_title
|
||||||
|
label: 友链页标题自定义
|
||||||
|
value:
|
||||||
|
|
||||||
- group: style
|
- group: style
|
||||||
label: 样式设置
|
label: 样式设置
|
||||||
formSchema:
|
formSchema:
|
||||||
|
|||||||
@@ -6,7 +6,11 @@
|
|||||||
<th:block th:fragment="content">
|
<th:block th:fragment="content">
|
||||||
<article class="post">
|
<article class="post">
|
||||||
<header>
|
<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>
|
</header>
|
||||||
<div>
|
<div>
|
||||||
<th:block th:each="archive : ${archives.items}">
|
<th:block th:each="archive : ${archives.items}">
|
||||||
|
|||||||
@@ -6,7 +6,11 @@
|
|||||||
<th:block th:fragment="content">
|
<th:block th:fragment="content">
|
||||||
<article class="post">
|
<article class="post">
|
||||||
<header>
|
<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>
|
</header>
|
||||||
<div class="post-content">
|
<div class="post-content">
|
||||||
<ul>
|
<ul>
|
||||||
|
|||||||
@@ -7,7 +7,8 @@
|
|||||||
<article class="post">
|
<article class="post">
|
||||||
<header>
|
<header>
|
||||||
<h1 class="post-title"
|
<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]
|
Category: Category name [n]
|
||||||
</h1>
|
</h1>
|
||||||
</header>
|
</header>
|
||||||
|
|||||||
@@ -4,7 +4,11 @@
|
|||||||
<th:block th:fragment="content">
|
<th:block th:fragment="content">
|
||||||
<article class="post">
|
<article class="post">
|
||||||
<header>
|
<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>
|
</header>
|
||||||
<section class="post-content link-section" th:each="group : ${groups}">
|
<section class="post-content link-section" th:each="group : ${groups}">
|
||||||
<h2 th:text="${!#strings.isEmpty(group.spec.displayName) ? group.spec.displayName:'links'}">
|
<h2 th:text="${!#strings.isEmpty(group.spec.displayName) ? group.spec.displayName:'links'}">
|
||||||
|
|||||||
+2
-1
@@ -7,7 +7,8 @@
|
|||||||
<article class="post">
|
<article class="post">
|
||||||
<header>
|
<header>
|
||||||
<h1 class="post-title"
|
<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]
|
Tag: Tag name [n]
|
||||||
</h1>
|
</h1>
|
||||||
</header>
|
</header>
|
||||||
|
|||||||
+5
-1
@@ -6,7 +6,11 @@
|
|||||||
<th:block th:fragment="content">
|
<th:block th:fragment="content">
|
||||||
<article class="post">
|
<article class="post">
|
||||||
<header>
|
<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>
|
</header>
|
||||||
<div class="post-content">
|
<div class="post-content">
|
||||||
<ul>
|
<ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user