-
-
Save SteveBenner/8897566 to your computer and use it in GitHub Desktop.
Revisions
-
SteveBenner revised this gist
Oct 17, 2014 . 1 changed file with 7 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,9 @@ - pages = sitemap.resources.find_all{|p| p.source_file.match(/\.html/) } doctype xml urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" - pages.each do |p| url loc "http://www.YOUR_WEBSITE_URL/#{p.destination_path.gsub('/index.html','')}" lastmod = Date.today.to_time.iso8601 changefreq = p.data.changefreq || 'weekly' priority = p.data.priority || '0.5' -
SteveBenner revised this gist
Apr 27, 2014 . 1 changed file with 8 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,9 @@ - pages = sitemap.resources.find_all{|p| p.source_file.match(/\.html/) } doctype xml urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" - pages.each do |p| url loc "http://www.YOUR_WEBSITE_URL/#{p.destination_path.gsub('/index.html','')}" lastmod = Date.today.to_time.iso8601 changefreq = p.data.changefreq || 'weekly' priority = p.data.priority || '0.5' -
SteveBenner revised this gist
Apr 27, 2014 . 2 changed files with 9 additions and 12 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,12 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ - pages = sitemap.resources.find_all{|p| p.source_file.match(/\.html/) } doctype xml urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" - pages.each do |p| url loc "http://www.YOUR_WEBSITE_URL/#{p.destination_path.gsub('/index.html','')}" lastmod = Date.today.to_time.iso8601 changefreq = p.data.changefreq || 'weekly' priority = p.data.priority || '0.5' -
SteveBenner revised this gist
Feb 9, 2014 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,8 +4,8 @@ <% pages.each do |p| %> <url> <loc>http://www.YOUR_WEBSITE_URL/<%= p.destination_path.gsub('/index.html','') %></loc> <lastmod><%= Date.today.to_time.iso8601 %></lastmod> <changefreq><%= p.data.changefreq || 'weekly' %></changefreq> <priority><%= p.data.priority || '0.5' %></priority> </url> <% end %> -
SteveBenner revised this gist
Feb 9, 2014 . 1 changed file with 4 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,8 +3,10 @@ <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <% pages.each do |p| %> <url> <loc>http://www.YOUR_WEBSITE_URL/<%= p.destination_path.gsub('/index.html','') %></loc> <lastmod><%= Date.today.to_time.iso8601 %></lastmod> <changefreq><%= p.data.changefreq || 'weekly' %></changefreq> <priority><%= p.data.priority || '0.5' %></priority> </url> <% end %> </urlset> -
Luke Bowerman created this gist
Aug 7, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ <% pages = sitemap.resources.find_all{|p| p.source_file.match(/\.html/) } %> <?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <% pages.each do |p| %> <url> <loc>http://youdomain.com/<%=p.destination_path.gsub('/index.html','')%></loc> <priority>0.7</priority> </url> <% end %> </urlset>