litten的主題yilia
- 編輯文件
themes/yilia/_config.yml,添加一行配置,可以刪除原來的google analytics
baidu_tongji: true
- 新建
themes/yilia/layout/_partial/baidu_tongji.ejs,內容如下
<% if (theme.baidu_tongji) { %>
<script type="text/javascript">
#申請的百度統計代碼
</script>
<% } %>
- 編輯
themes/yilia/layout/_partial/head.ejs在</head>前添加<%- partial("baidu_tongji") %> - 重新生產部署站點即可。
