Skip to content

Support meta robots tag.#1515

Closed
PMExtra wants to merge 1 commit into
theme-next:masterfrom
PMExtra:feature/noindex
Closed

Support meta robots tag.#1515
PMExtra wants to merge 1 commit into
theme-next:masterfrom
PMExtra:feature/noindex

Conversation

@PMExtra

@PMExtra PMExtra commented May 28, 2020

Copy link
Copy Markdown

PR Checklist

  • The commit message follows guidelines for NexT.
  • Tests for the changes was maked (for bug fixes / features).
    • Muse | Mist have been tested.
    • Pisces | Gemini have been tested.
  • Docs in NexT website have been added / updated (for features).

PR Type

  • Feature.

What is the new behavior?

Robots meta directives (sometimes called "meta tags") are pieces of code that provide crawlers instructions for how to crawl or index web page content. (For more details: https://moz.com/learn/seo/robots-meta-directives)

You can tell the search engines to don't index the page by setting the value noindex to true in Front-matter.
You can also specify a certain value of robots directive by setting the robots in Front-matter.

How to use?

In your any custom_page.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.
---

@welcome

welcome Bot commented May 28, 2020

Copy link
Copy Markdown

Thanks so much for opening your first PR here!

@CLAassistant

CLAassistant commented May 28, 2020

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

PMExtra added a commit to PMExtra/theme-next.org that referenced this pull request May 28, 2020
@PMExtra PMExtra changed the title Support noindex. Support meta robots tag. May 28, 2020
@jiangtj jiangtj added this to the 7.9.0 milestone May 31, 2020
@PMExtra

PMExtra commented Dec 24, 2020

Copy link
Copy Markdown
Author

I've improved the docs of this. Please let me know if anything I can do, or accept the PR.

@PMExtra PMExtra closed this Nov 5, 2021
@PMExtra PMExtra deleted the feature/noindex branch November 5, 2021 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants