Skip to content

Commit 7041cd6

Browse files
Tokisaki-Galaxyzkqiang
authored andcommitted
在首页添加h1标记
bing webmaster提示,该主题没有在首页添加h1标记,对seo性能有影响,所以在首页加上不可见的h1标记
1 parent efd46dc commit 7041cd6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

layout/index.ejs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ page.banner_img_height = theme.index.banner_img_height
77
page.banner_mask_alpha = theme.index.banner_mask_alpha
88
%>
99

10+
<h1 style="display: none"><%= config.title %></h1>
1011
<% page.posts.each(function (post) { %>
1112
<div class="row mx-auto index-card">
1213
<% var post_url = url_for(post.path), index_img = post.index_img || theme.post.default_index_img %>

0 commit comments

Comments
 (0)