Commit 5b953dd4 authored by hellekin's avatar hellekin

Move sitemap.xml up to avoid a layout conflict

parent 81b6d54f
Pipeline #337 passed with stage
in 8 minutes and 7 seconds
......@@ -20,8 +20,8 @@ end
###
page ".(asc|json|txt|xml)$", :layout => false
page "/sitemap.xml", :layout => false
page "/os/*", :layout => :os
page "/os/sitemap.xml", :layout => false
# Proxy pages (https://middlemanapp.com/advanced/dynamic_pages/)
# proxy "/this-page-has-no-template.html", "/template-file.html", :locals => {
......
......@@ -39,6 +39,8 @@ server {
# Old dismissed locations
# Mirror: comment out if that interferes with your site.
location ^/(css|img|js) { return 404; }
# Moved sitemap up because of conflicting layout
rewrite ^/os/sitemap.xml /sitemap.xml permanent;
# Is this still needed?
location = /google1b5b85f34f8aa7f8.html {
......
......@@ -25,7 +25,7 @@ We strive to keep our links working.
If you found the error while browsing devuan.org, please take a moment
to [report it to devuan-www][0].
We also have a [sitemap](/os/sitemap.xml) for robots.
We also have a [sitemap](/sitemap.xml) for robots.
> [<%= current_page.data.fortunes.sample %>](/toc)
{:.fortune}
......
......@@ -14,4 +14,4 @@ Allow: /os/download/releases/devuan_jessie_1.0_beta.torrent
Disallow: /ui
Allow: /ui/img/devuan-emblem.png
Allow: /ui/img/devuan-logo.png
Sitemap: /os/sitemap.xml
Sitemap: /sitemap.xml
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment