Skip to content

Commit

Permalink
feat: Google site verification support
Browse files Browse the repository at this point in the history
  • Loading branch information
lh1me committed Mar 1, 2021
1 parent e108af7 commit 5f213a8
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 1.18.0

### Features

- Feat: Google site verification support

# 1.17.0

### Features
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,14 @@ aomori_baidu_analytics: ''
aomori_google_analytics: 'UA-XXXXX-X'
```

#### Google Site Verification

``` yml
aomori_google_site:
enable: true
id: XXX
```

#### Busuanzi Count

Counting service provided by [Busuanzi](https://busuanzi.ibruce.info/)
Expand Down
8 changes: 8 additions & 0 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,14 @@ aomori_baidu_analytics: ''
aomori_google_analytics: 'UA-XXXXX-X'
```

#### Google Site Verification

``` yml
aomori_google_site:
enable: true
id: XXX
```

#### 不蒜子 统计

由 [不蒜子](https://busuanzi.ibruce.info/) 提供的计数服务
Expand Down
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version: 1.17.0
version: 1.18.0
language: cn
4 changes: 4 additions & 0 deletions layout/_partial/head.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
<title><% if (title){ %><%= title %> | <% } %><%= config.title %></title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

<% if (config.aomori_google_site && config.aomori_google_site.enable){ %>
<meta name="google-site-verification" content="<%= config.aomori_google_site.id %>" />
<% } %>

<% if (config.aomori_search_algolia){ %>
<%- algolia_search_config() %>
<% } %>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-theme-aomori",
"version": "1.17.0",
"version": "1.18.0",
"description": "",
"author": "lh1me",
"scripts": {
Expand Down

0 comments on commit 5f213a8

Please sign in to comment.