fix multiple meta description tags

This commit is contained in:
xaoxuu 2022-11-07 10:07:47 +08:00
parent 3974fb3c55
commit 677636fe3e
1 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,9 @@ function generate_title() {
return '';
}
function generate_description() {
if (theme.open_graph && theme.open_graph.enable) {
return '';
}
if (page.layout == 'wiki' && page.wiki) {
let proj = theme.wiki.projects[page.wiki];
if (proj && proj.description) {