Skip to content
Permalink
Browse files

Better verbiage about search engines indexing sites

  • Loading branch information...
dereckcurry committed Apr 22, 2019
1 parent 5a7630c commit 78c743a4f7cebdd99fb5511ffdadd50f9645ab73
Showing with 3 additions and 1 deletion.
  1. +3 −1 readme.md
@@ -4,7 +4,9 @@ If you don't want some of your pages to be included in the **sitemap.xml** file

These template is designed to work with Hugo versions 0.54.x and 0.55.x. It will likely work with other versions, but has not been tested.

The [default Hugo template](https://github.com/gohugoio/hugo/blob/release-0.55.2/tpl/tplimpl/embedded/templates/_default/sitemap.xml) for the **sitemap.xml** file includes all pages by default in the sitemap used by search engines to index your site. Unfortunately, there may be times when you wish to have a hidden page on your site and therefore you wouldn't want the page to show up in the **sitemap.xml** file. This template gives you more control of the **sitemap.xml** file contents by allowing you to explicitly state in the page front matter if you wish to have the page excluded. In absense of a specifically defined exclusion values, the template includes the page in the **sitemap.xml** file.
The [default Hugo template](https://github.com/gohugoio/hugo/blob/release-0.55.2/tpl/tplimpl/embedded/templates/_default/sitemap.xml) for the **sitemap.xml** file includes all pages by default in the sitemap used by search engines to help index your site. Unfortunately, there may be times when you wish to have a hidden page on your site and therefore you wouldn't want the page to show up in the **sitemap.xml** file. This template gives you more control of the **sitemap.xml** file contents by allowing you to explicitly state in the page front matter if you wish to have the page excluded. In absense of a specifically defined exclusion values, the template includes the page in the **sitemap.xml** file.

Removing a page from the **sitemap.xml** file may not keep a search engine from eventually discovering and indexing the page. When determining whether any particular page should be indexed and included in search results, well behaved search engines will also take into consideration the **<meta name="robots" ... />** tag on the page and also the disallow directives in **robots.txt** file. But some search engines don't honor those settings. If you really want to keep content out of search engines, you'll have to password protect the page. Or better yet, never include the content on a web page in the first place, as search engines are really good about discovering and indexing content.


## Template Installation

0 comments on commit 78c743a

Please sign in to comment.
You can’t perform that action at this time.