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:
authorAchilleas Pipinellis <axil@gitlab.com>2018-05-24 17:19:14 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2018-05-24 17:19:14 +0300
commited5978d2a04dc699e49e10a0271463218485d5c2 (patch)
treea154b5471e4a46126b29cf3a1ff91f3d3355cf93
parentce58118e812e50796bc25ff80d453d57d066830d (diff)
parenteb82cc743ce427ace4728a43f96f9769e5a77ffa (diff)
Merge branch 'sitemap' into 'master'
Include all HTML files in sitemap Closes #208 See merge request gitlab-com/gitlab-docs!271
-rw-r--r--content/sitemap.xml.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/sitemap.xml.erb b/content/sitemap.xml.erb
index eeb3d74e..eb500125 100644
--- a/content/sitemap.xml.erb
+++ b/content/sitemap.xml.erb
@@ -2,5 +2,5 @@
is_hidden: true
---
<%= xml_sitemap(
- items: items.select { |item| !item[:is_hidden] && item.path.end_with?('.html') }
+ items: items.select { |i| !i[:is_hidden] && !i.path.end_with?('.svg') && !i.path.end_with?('.woff2') && !i.path.end_with?('.png') && !i.path.end_with?('.js') && !i.path.end_with?('.css') && !i.path.end_with?('.yaml') && !i.path.end_with?('.gif')}
) %>