Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Shea <connor.james.shea@gmail.com>2016-11-09 22:53:03 +0300
committerConnor Shea <connor.james.shea@gmail.com>2016-11-09 22:53:03 +0300
commit57d19de621f3c5eff94524b1e37b2a5824a0cab7 (patch)
tree82be0fff3a0def6aea569ee9b76084cdecd7f071
parent314b98db5bc3aaba4aa99e5ff78c765a260f2360 (diff)
Update the sitemap to only include HTML files.
-rw-r--r--content/sitemap.xml.erb4
1 files changed, 3 insertions, 1 deletions
diff --git a/content/sitemap.xml.erb b/content/sitemap.xml.erb
index 32d79f19..eeb3d74e 100644
--- a/content/sitemap.xml.erb
+++ b/content/sitemap.xml.erb
@@ -1,4 +1,6 @@
---
is_hidden: true
---
-<%= xml_sitemap %>
+<%= xml_sitemap(
+ items: items.select { |item| !item[:is_hidden] && item.path.end_with?('.html') }
+) %>