[fix] fix #186 title

This commit is contained in:
xaoxuu 2022-11-21 21:44:18 +08:00
parent 20507e8920
commit f02c13449e
4 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,7 @@ if (page.menu_id == undefined) {
<% if (page.posts && (is_category() || is_tag())) { %>
<%- partial('index') %>
<% } else { %>
<% page.title = __('btn.archives') + ' - ' + config.title; %>
<% page.title = __('btn.archives'); %>
<%- partial('_partial/main/navbar/list_post') %>
<div class='post-list'>
<% var years = []; %>

View File

@ -5,7 +5,7 @@ if (page.menu_id == undefined) {
}
%>
<% if (site.categories.length) { %>
<% page.title = __('btn.categories') + ' - ' + config.title; %>
<% page.title = __('btn.categories'); %>
<% page.layout = 'categories'; %>
<%- partial('_partial/main/navbar/list_post') %>
<div class='post-list'>

View File

@ -5,7 +5,7 @@ if (page.menu_id == undefined) {
}
%>
<% if (site.tags.length) { %>
<% page.title = __('btn.tags') + ' - ' + config.title; %>
<% page.title = __('btn.tags'); %>
<% page.layout = 'tags'; %>
<%- partial('_partial/main/navbar/list_post') %>
<div class='post-list'>

View File

@ -7,9 +7,9 @@ if (page.layout == undefined) {
}
if (page.title == undefined) {
if (page.tagName) {
page.title = page.tagName + ' - ' + config.title;
page.title = page.tagName;
} else {
page.title = __('btn.wiki') + ' - ' + config.title;
page.title = __('btn.wiki');
}
}
function layoutTitle() {