From d0cd77d711668b6da7d2b3ed6a8f8c27f1eb2bea Mon Sep 17 00:00:00 2001 From: PM Extra Date: Thu, 28 May 2020 23:14:10 +0800 Subject: [PATCH 1/2] Update SSO docs for PR #1515 https://github.com/theme-next/hexo-theme-next/pull/1515 --- source/docs/theme-settings/seo.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/source/docs/theme-settings/seo.md b/source/docs/theme-settings/seo.md index ba10794a..287130fd 100644 --- a/source/docs/theme-settings/seo.md +++ b/source/docs/theme-settings/seo.md @@ -12,6 +12,19 @@ By default a canonical link tag is created in Hexo after you have set up your UR {% endnote %} {% tabs SEO %} + +[Robots meta directives](https://moz.com/learn/seo/robots-meta-directives) (sometimes called "meta tags") are pieces of code that provide crawlers instructions for how to crawl or index web page content. You can tell the search engines to don't index the page by setting the value `noindex` to `true` in [Front-matter](./custom-pages.html#adding-custom-page-2). +You can also specify a certain value of robots directive by setting the `robots` in Front-matter. + +```md +title: custom_name +date: 2014-12-22 12:39:04 +robots: noimageindex, nofollow, nosnippet +noindex: true # This will be ignored if you've set the robots. +--- +``` + + By default China's search engine Baidu will cache and rewrite your site to provide a webpage snapshot for mobile users. You can disable this by setting the value `disable_baidu_transformation` to `true` in {% label primary@theme config file %}. From fd80498cf445ed31af66784ec4499f70bff84c41 Mon Sep 17 00:00:00 2001 From: PM Extra Date: Thu, 24 Dec 2020 16:22:29 +0800 Subject: [PATCH 2/2] Update seo.md --- source/docs/theme-settings/seo.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/source/docs/theme-settings/seo.md b/source/docs/theme-settings/seo.md index 287130fd..0d912be2 100644 --- a/source/docs/theme-settings/seo.md +++ b/source/docs/theme-settings/seo.md @@ -14,13 +14,21 @@ By default a canonical link tag is created in Hexo after you have set up your UR {% tabs SEO %} [Robots meta directives](https://moz.com/learn/seo/robots-meta-directives) (sometimes called "meta tags") are pieces of code that provide crawlers instructions for how to crawl or index web page content. You can tell the search engines to don't index the page by setting the value `noindex` to `true` in [Front-matter](./custom-pages.html#adding-custom-page-2). -You can also specify a certain value of robots directive by setting the `robots` in Front-matter. +You can also specify a certain value of robots directive by setting the `robots` in Front-matter. `noindex: true` is equivalent to `robots: noindex`. +Simple usage case: +```md +title: custom_name +date: 2014-12-22 12:39:04 +noindex: true +--- +``` + +Advanced usage case: ```md title: custom_name date: 2014-12-22 12:39:04 robots: noimageindex, nofollow, nosnippet -noindex: true # This will be ignored if you've set the robots. --- ```