Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SEO docs for PR #1515 #93

Open
wants to merge 2 commits into
base: source
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions source/docs/theme-settings/seo.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,27 @@ By default a canonical link tag is created in Hexo after you have set up your UR
{% endnote %}

{% tabs SEO %}
<!-- tab <code>robots & noindex</code> -->
[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. `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
---
```
<!-- endtab -->

<!-- tab <code>disable_baidu_transformation</code> -->
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 %}.

Expand Down