diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2018-05-29 17:08:28 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2018-05-29 17:08:28 +0300 |
commit | 405d8e479b37582171bf693ed493351722f9cacc (patch) | |
tree | 73e78228e6e839382bfb9a48698ac131787b54e7 | |
parent | c3e5e5b11d679c77ec252e7a75797ea92293137d (diff) | |
parent | ba05b2df55651fd2f25458d65556b20a72690ac4 (diff) |
Merge branch 'sitemap' into 'master'
Simplify sitemap
See merge request gitlab-com/gitlab-docs!276
-rw-r--r-- | content/sitemap.xml.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/sitemap.xml.erb b/content/sitemap.xml.erb index eb500125..9cb57577 100644 --- a/content/sitemap.xml.erb +++ b/content/sitemap.xml.erb @@ -2,5 +2,5 @@ is_hidden: true --- <%= xml_sitemap( - 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')} + items: items.select { |i| !i[:is_hidden] && i.identifier.to_s.end_with?('.md','.erb','.html')} ) %> |