Skip to content

Commit

Permalink
feat: add 360 and sougou seo support (#268)
Browse files Browse the repository at this point in the history
* feat: add 360 and sougou seo support

* chore: clean up code and update documentation

Co-authored-by: HEIGE-PCloud <heige.pcloud@outlook.com>
Co-authored-by: PCloud <52968553+HEIGE-PCloud@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 7, 2021
1 parent 865018a commit 5097924
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,8 @@ enableEmoji = true
yandex = ""
pinterest = ""
baidu = ""
so = ""
sogou = ""

# Site SEO config
# 网站 SEO 配置
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,8 @@ Please open the code block below to view the complete sample configuration :(far
yandex = ""
pinterest = ""
baidu = ""
so = "" # 360 search
sogou = ""

# {{< version 0.2.10 >}} Site SEO config
[params.seo]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,8 @@ hugo
yandex = ""
pinterest = ""
baidu = ""
so = "" # 360 search
sogou = ""

# {{< version 0.2.10 >}} 网站 SEO 配置
[params.seo]
Expand Down
6 changes: 6 additions & 0 deletions layouts/partials/head/seo.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
{{- with .Site.Params.verification.baidu -}}
<meta name="baidu-site-verification" content="{{ . }}" />
{{- end -}}
{{- with .Site.Params.verification.sogou -}}
<meta name="sogou_site_verification" content="{{ . }}" />
{{- end -}}
{{- with .Site.Params.verification.so -}}
<meta name="360-site-verification" content="{{ . }}" />
{{- end -}}

{{- /* Home SEO */ -}}
{{- if .IsHome -}}
Expand Down

1 comment on commit 5097924

@vercel
Copy link

@vercel vercel bot commented on 5097924 Oct 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.