From 677636fe3e46ea858d6f6c8d01ed9f411eee5eb3 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Mon, 7 Nov 2022 10:07:47 +0800 Subject: [PATCH] fix multiple meta description tags --- layout/_partial/head.ejs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs index 47545a4..5006947 100755 --- a/layout/_partial/head.ejs +++ b/layout/_partial/head.ejs @@ -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) {