From f02c13449e6629e67606cd991cdce601ccc9563f Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Mon, 21 Nov 2022 21:44:18 +0800 Subject: [PATCH] [fix] fix #186 title --- layout/archive.ejs | 2 +- layout/categories.ejs | 2 +- layout/tags.ejs | 2 +- layout/wiki.ejs | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/layout/archive.ejs b/layout/archive.ejs index c3818a3..bdaeca1 100755 --- a/layout/archive.ejs +++ b/layout/archive.ejs @@ -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') %>
<% var years = []; %> diff --git a/layout/categories.ejs b/layout/categories.ejs index 95781c0..3b6dd7d 100755 --- a/layout/categories.ejs +++ b/layout/categories.ejs @@ -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') %>
diff --git a/layout/tags.ejs b/layout/tags.ejs index e911875..078d7e8 100755 --- a/layout/tags.ejs +++ b/layout/tags.ejs @@ -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') %>
diff --git a/layout/wiki.ejs b/layout/wiki.ejs index d726105..f0bb3f3 100755 --- a/layout/wiki.ejs +++ b/layout/wiki.ejs @@ -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() {