mirror of
https://github.com/docker/docs.git
synced 2026-03-29 23:38:56 +07:00
The `hide_from_sitemap` metadata variable was a custom thing we implemented to add a "noindex" meta-header to pages and to exclude a page from the search auto-complete. However, pages with that option set would still be included in sitemap.xml, resulting in search engines to visit those pages (only to discover they should not index them). This patch replaces the custom `hide_from_sitemap` value for `sitemap: false`, which is a metadata variable that's defined by the "jekyll-sitemap" plugin we use to generate the sitemap.xml; https://github.com/jekyll/jekyll-sitemap/blob/v1.4.0/README.md#exclusions Setting this variable will now: - add a "noindex" metadata header to the page - exclude the page from the sitemap.xml. - exclude the page from /js/metadata.json (used for search autocomplete) Also fixed an issue in the metadata.json where the `notoc` metadata was used to exclude pages, however that variable is meant to disable the in-page TOC (right-hand side navigation with anchor links). Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
34 lines
1.2 KiB
Markdown
34 lines
1.2 KiB
Markdown
---
|
|
title: "Sorry, we can't find that page"
|
|
permalink: /404.html
|
|
noratings: true
|
|
notoc: true
|
|
sitemap: false
|
|
skip_read_time: true
|
|
---
|
|
|
|
There might be a mistake in the URL or you might've clicked a link to content
|
|
that no longer exists. If you think it's the latter, please file an issue in
|
|
our [issue tracker on GitHub](https://github.com/docker/docker.github.io/issues/new)
|
|
and let us know what happened. Please also include a link to where the error
|
|
occurred, if applicable.
|
|
|
|
[**Click here to create a new ticket**](https://github.com/docker/docker.github.io/issues/new){:.newissue.button.primary-btn}
|
|
|
|
|
|
[](https://docs.docker.com/ "Go to the homepage")
|
|
|
|
<script>
|
|
let el = document.querySelector("a.newissue");
|
|
if (el) {
|
|
let url = new URL("https://github.com/docker/docker.github.io/issues/new");
|
|
url.searchParams.set("title", "404 at " + window.location.pathname);
|
|
let body = "I found a broken link : " + window.location.href;
|
|
if (document.referrer !== "") {
|
|
body += "\nI arrived on this page through: " + document.referrer
|
|
}
|
|
url.searchParams.set("body", body);
|
|
el.setAttribute("href", url.toString());
|
|
}
|
|
</script>
|