Skip to content

Commit 2be8ddb

Browse files
committed
seo
1 parent 6197ea4 commit 2be8ddb

1 file changed

Lines changed: 19 additions & 15 deletions

File tree

themes/keep/layout/_partial/head.ejs

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<head>
22
<meta charset="utf-8">
33
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
4-
<meta name="keywords" content="<%= page?.keywords || config?.keywords || 'Hexo Theme Keep' %>">
5-
<meta name="description" content="<%= page?.description || config?.description || 'Hexo Theme Keep' %>">
6-
<meta name="author" content="<%= theme?.base_info?.author || config?.author || 'Keep Team' %>">
4+
<meta name="keywords" content="<%= page?.keywords || config?.keywords || '技术博客,后端开发,编程笔记,生活' %>">
5+
<meta name="description" content="<%= page?.description || config?.description || 'Code | Systems | Life — 专注编程本质,也关心世界如何运转。' %>">
6+
<meta name="author" content="<%= theme?.base_info?.author || config?.author || '咕咕咕' %>">
7+
78
<%
89
let title = page.title;
910
if (is_archive()) {
@@ -44,19 +45,22 @@
4445
<% } %>
4546
<%- exportThemeConfig() %>
4647
47-
<!-- Google tag (gtag.js) -->
48-
<script async src="https://www.googletagmanager.com/gtag/js?id=G-CLX32WF4R1"></script>
49-
<script>
50-
window.dataLayer = window.dataLayer || [];
51-
function gtag(){dataLayer.push(arguments);}
52-
gtag('js', new Date());
48+
<!-- Google tag (gtag.js) -->
49+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-CLX32WF4R1"></script>
50+
<script>
51+
window.dataLayer = window.dataLayer || [];
5352
54-
gtag('config', 'G-CLX32WF4R1');
55-
</script>
53+
function gtag() {
54+
dataLayer.push(arguments);
55+
}
5656
57-
<!-- 51.la -->
58-
<script charset="UTF-8" id="LA_COLLECT" src="//sdk.51.la/js-sdk-pro.min.js"></script>
59-
<script>LA.init({id:"3JwPz6wbAloyTmMc",ck:"3JwPz6wbAloyTmMc",autoTrack:true})</script>
57+
gtag('js', new Date());
6058
61-
</head>
59+
gtag('config', 'G-CLX32WF4R1');
60+
</script>
6261
62+
<!-- 51.la -->
63+
<script charset="UTF-8" id="LA_COLLECT" src="//sdk.51.la/js-sdk-pro.min.js"></script>
64+
<script>LA.init({id: "3JwPz6wbAloyTmMc", ck: "3JwPz6wbAloyTmMc", autoTrack: true})</script>
65+
66+
</head>

0 commit comments

Comments
 (0)