Commit cdc6a212 authored by Evaryont's avatar Evaryont

sitemap.xml file for my website

parent 626bdfa8
Pipeline #11 failed with stage
in 2 minutes and 9 seconds
......@@ -62,6 +62,8 @@ page '/blog/*', layout: 'post'
page '/projects/*', layout: 'project'
page '/resume.html', layout: false
proxy '/.well-known/sitemap.xml', '/sitemap.xml'
activate :syntax #, :line_numbers => true
# Use Kramdown for parsing Markdown. Midleman-Syntax includes support!
layout: false
xml.instruct! 'xml-stylesheet', {:href=>'/sitemap.xsl', :type=>'text/xsl'}
xml.urlset "xmlns" => "" do
sitemap.resources.each do |resource|
xml.url do
xml.loc URI.join(, resource.url)
xml.lastmod File.mtime(resource.source_file).iso8601
xml.changefreq || "monthly"
xml.priority || (resource.blog_controller ? '0.9' : '0.5')
end if resource.url =~ /(\/|\.html?)$/
This diff is collapsed.
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