From e67b99696ca5ee84f5678cd79d811711e24f7a7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B0=E7=A5=9E=E8=88=9E?= <270490285@qq.com> Date: Mon, 19 Nov 2018 01:11:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99=E4=B8=BB=E9=A2=98=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=85=B3=E9=94=AE=E5=AD=97=EF=BC=8C=E6=96=B9=E4=BE=BFSEO?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在站点配置_config.yml添加keywords: 关键字1,关键字2,...(关键字之间用逗号隔开) 也可以在markdown文章头部添加关键字 keywords: 关键字1,关键字2,...(关键字之间用逗号隔开) --- layout/_partial/head.ejs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs index a9fba3a..7a11b7b 100755 --- a/layout/_partial/head.ejs +++ b/layout/_partial/head.ejs @@ -18,6 +18,12 @@ title = 'Tag: ' + page.tag; %> <% if (title) { %><%= title %> | <% } %><%= config.title %> + <% if (page.keywords){ %> + + <% } else if (config.keywords){ %> + + <%} + %> <%- favicon_tag(config.favicon) %>