diff options
author | Connor Shea <connor.james.shea@gmail.com> | 2016-11-09 22:53:03 +0300 |
---|---|---|
committer | Connor Shea <connor.james.shea@gmail.com> | 2016-11-09 22:53:03 +0300 |
commit | 57d19de621f3c5eff94524b1e37b2a5824a0cab7 (patch) | |
tree | 82be0fff3a0def6aea569ee9b76084cdecd7f071 | |
parent | 314b98db5bc3aaba4aa99e5ff78c765a260f2360 (diff) |
Update the sitemap to only include HTML files.
-rw-r--r-- | content/sitemap.xml.erb | 4 |
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') } +) %> |