From 8a69d995d3d33b5cb654d996ad625f3a18b3891e Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Tue, 22 Feb 2022 22:05:15 +0800 Subject: [PATCH] :sparkles: Feat: add 360 and sougou seo support --- CHANGELOG.md | 5 +++-- exampleSite/config.toml | 6 ++++-- exampleSite/content/about/index.en.md | 2 +- exampleSite/content/about/index.zh-cn.md | 2 +- .../content/posts/theme-documentation-basics/index.en.md | 4 +++- .../content/posts/theme-documentation-basics/index.zh-cn.md | 4 +++- layouts/partials/head/seo.html | 6 ++++++ 7 files changed, 21 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d5958764..5eed83e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,10 +12,11 @@ All notable changes to this project will be documented in this file. - :sparkles: Feat: add pageStyle option ([#62](https://github.com/Lruihao/FixIt/issues/62)) - :sparkles: Feat: add article expiration reminder support ([#51](https://github.com/Lruihao/FixIt/issues/51)) - :sparkles: Feat: add 9 newly supported social links ([#17](https://github.com/Lruihao/FixIt/issues/17)) -- :sparkles: Feat: update cell-watermark 1.0.3 and support CDN (fontFamily supported) - :sparkles: Feat: add Gravatar mirror site support ([#66](https://github.com/Lruihao/FixIt/pull/66)@ctj12461) +- :sparkles: Feat: update cell-watermark 1.0.3 and CDN support (fontFamily supported) +- :mag: Feat: add 360 and sougou seo support - :lipstick: Style: add radius of the scrollbar -- :pencil2: Style: fix typo discription should be: description ([#60](https://github.com/Lruihao/FixIt/issues/60)) +- :pencil2: Style: fix typo "discription" should be "description" ([#60](https://github.com/Lruihao/FixIt/issues/60)) - :fire: Feat: remove shortcode cardlink ([#42](https://github.com/Lruihao/FixIt/issues/42)) - **Full Changelog:** [`v0.2.12...v0.2.13`](https://github.com/Lruihao/FixIt/compare/v0.2.12...v0.2.13) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 96fe2afe..96837139 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -966,14 +966,16 @@ enableEmoji = true # 网站创立时间 siteTime = '2019-02-03T19:30:34+08:00' - # Site verification code for Google/Bing/Yandex/Pinterest/Baidu - # 网站验证代码,用于 Google/Bing/Yandex/Pinterest/Baidu + # Site verification code for Google/Bing/Yandex/Pinterest/Baidu/360/Sogou + # 网站验证代码,用于 Google/Bing/Yandex/Pinterest/Baidu/360/Sogou [params.verification] google = "" bing = "" yandex = "" pinterest = "" baidu = "" + so = "" + sogou = "" # Site SEO config # 网站 SEO 配置 diff --git a/exampleSite/content/about/index.en.md b/exampleSite/content/about/index.en.md index 36d9ac13..7e3a1f0e 100644 --- a/exampleSite/content/about/index.en.md +++ b/exampleSite/content/about/index.en.md @@ -32,7 +32,7 @@ math: * :(fab fa-searchengin fa-fw): Optimized SEO performance with a correct **SEO SCHEMA** based on JSON-LD * :(fab fa-google fa-fw): **[Google Analytics](https://analytics.google.com/analytics)** supported * :(far fa-chart-bar fa-fw): **[Fathom Analytics](https://usefathom.com/)** supported -* :(fas fa-search fa-fw): Search engine **verification** supported (Google, Bind, Yandex and Baidu) +* :(fas fa-search fa-fw): Search engine **verification** supported (Google, Bind, Yandex, Baidu, 360 and Sogou) * :(fas fa-tachometer-alt fa-fw): **CDN** for third-party libraries supported * :(fas fa-cloud-download-alt fa-fw): Automatically converted images with **Lazy Load** by [lazysizes](https://github.com/aFarkas/lazysizes) diff --git a/exampleSite/content/about/index.zh-cn.md b/exampleSite/content/about/index.zh-cn.md index 6c95a395..89cefe65 100644 --- a/exampleSite/content/about/index.zh-cn.md +++ b/exampleSite/content/about/index.zh-cn.md @@ -32,7 +32,7 @@ math: * :(fab fa-searchengin fa-fw): 使用基于 JSON-LD 格式 的 **SEO SCHEMA** 文件进行 SEO 优化 * :(fab fa-google fa-fw): 支持 **[Google Analytics](https://analytics.google.com/analytics)** * :(far fa-chart-bar fa-fw): 支持 **[Fathom Analytics](https://usefathom.com/)** -* :(fas fa-search fa-fw): 支持搜索引擎的**网站验证** (Google, Bind, Yandex and Baidu) +* :(fas fa-search fa-fw): 支持搜索引擎的**网站验证** (Google, Bind, Yandex, Baidu, 360 and Sogou) * :(fas fa-tachometer-alt fa-fw): 支持所有第三方库的 **CDN** * :(fas fa-cloud-download-alt fa-fw): 基于 [lazysizes](https://github.com/aFarkas/lazysizes) 自动转换图片为**懒加载** diff --git a/exampleSite/content/posts/theme-documentation-basics/index.en.md b/exampleSite/content/posts/theme-documentation-basics/index.en.md index bbcf887c..4f15aa6d 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.en.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.en.md @@ -691,13 +691,15 @@ Please open the code block below to view the complete sample configuration :(far # Site creation time e.g. '2019-02-03T19:30:34+08:00' siteTime = '' - # Site verification code config for Google/Bing/Yandex/Pinterest/Baidu + # Site verification code config for Google/Bing/Yandex/Pinterest/Baidu/360/Sogou [params.verification] google = "" bing = "" yandex = "" pinterest = "" baidu = "" + so = "" + sogou = "" # {{< version 0.2.10 >}} Site SEO config [params.seo] diff --git a/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md index 36f35cbc..79f3d4a9 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md @@ -702,13 +702,15 @@ hugo # 网站创立时间 例:'2019-02-03T19:30:34+08:00' siteTime = '' - # 网站验证代码,用于 Google/Bing/Yandex/Pinterest/Baidu + # 网站验证代码,用于 Google/Bing/Yandex/Pinterest/Baidu/360/Sogou [params.verification] google = "" bing = "" yandex = "" pinterest = "" baidu = "" + so = "" + sogou = "" # {{< version 0.2.10 >}} 网站 SEO 配置 [params.seo] diff --git a/layouts/partials/head/seo.html b/layouts/partials/head/seo.html index 08795922..8acdd50d 100644 --- a/layouts/partials/head/seo.html +++ b/layouts/partials/head/seo.html @@ -15,6 +15,12 @@ {{- with .Site.Params.verification.baidu -}} {{- end -}} +{{- with .Site.Params.verification.so -}} + +{{- end -}} +{{- with .Site.Params.verification.sogou -}} + +{{- end -}} {{- /* Home SEO */ -}} {{- if .IsHome -}}