Permalink
Browse files

add: site verification option 站长验证选项

Add a site verification setting for
Google and Baidu at theme.config
主题配置提供站长验证选项。
  • Loading branch information...
MOxFIVE committed Dec 13, 2015
1 parent 5985392 commit 8fd12f50f1bf96c2c610626fc1c2f0ef86c576e7
Showing with 13 additions and 0 deletions.
  1. +5 −0 _config.yml
  2. +8 −0 layout/_partial/head.ejs
View
@@ -83,3 +83,8 @@ aboutme: 专注于前端
#是否显示边栏中的搜索框
#Search Box in left column
#search_box: true
#Site Verification for Google and Baidu. HTML label content.
#百度、谷歌站长验证。填写 HTML 标签 content
#baidu_site:
#google_site:
View
@@ -31,4 +31,12 @@
<%- css('css/style') %>
<link rel="stylesheet" href="/font-awesome/css/font-awesome.min.css">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<% if (is_home()){ %>
<% if (theme.baidu_site) { %>
<meta name="baidu-site-verification" content="<%- theme.baidu_site %>" />
<% } %>
<% if (theme.google_site) { %>
<meta name="google-site-verification" content="<%- theme.google_site %>" />
<% } %>
<% } %>
</head>

0 comments on commit 8fd12f5

Please sign in to comment.