diff options
author | John Doe <axil@gitlab.com> | 2018-05-24 16:54:36 +0300 |
---|---|---|
committer | John Doe <axil@gitlab.com> | 2018-05-24 17:04:12 +0300 |
commit | eb82cc743ce427ace4728a43f96f9769e5a77ffa (patch) | |
tree | a154b5471e4a46126b29cf3a1ff91f3d3355cf93 /content/sitemap.xml.erb | |
parent | ce58118e812e50796bc25ff80d453d57d066830d (diff) |
Include all HTML files in sitemap
Diffstat (limited to 'content/sitemap.xml.erb')
-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 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')} ) %> |