From 9c300e359f7a2f787187f1eb393e233ecc9e8e48 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sun, 25 Nov 2018 22:43:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BE=E5=BA=A6=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _config.yml | 6 ++++++ layout/_partial/head.ejs | 11 +++++++++++ 2 files changed, 17 insertions(+) diff --git a/_config.yml b/_config.yml index f57b58d..ec8da2c 100755 --- a/_config.yml +++ b/_config.yml @@ -48,6 +48,12 @@ avatar: https://xaoxuu.com/assets/img/avatar.jpg title: 博客名称 motto: 这是我的座右铭 +# 百度统计key +baidu_analytics_key: xxx + + + + # >> 主题配置 --------------------------------------------------------------------- # ✅ 这里的内容直接在下面进行修改 diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs index c5b2844..bffd8e6 100755 --- a/layout/_partial/head.ejs +++ b/layout/_partial/head.ejs @@ -47,4 +47,15 @@ document.getElementById('loading-bar').style.width=num+"%"; } + <% if (config.baidu_analytics_key) { %> + + <% } %>