Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Deal with the case of no last modification date in sitemap.

  • Loading branch information...
commit 33412f926d7e618b849cd8440a4d5d3e9408c544 1 parent fa1c629
@flaviusb authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/sitemap.ik
View
4 lib/sitemap.ik
@@ -3,8 +3,8 @@ mkurls = method("Make list of urls from a list", urls,
first = true
urls each(url,
if(first,
- baseMsg = ''((url (loc "#{`url[:file]}") `if(url[:modified] && url[:modified] != "", ''(lastmod "#{`url[:modified]}"), ""))). first = false,
- baseMsg last -> ''((url (loc "#{`url[:file]}") `if(url[:modified] && url[:modified] != "", ''(lastmod "#{`url[:modified]}"), "")))))
+ baseMsg = ''((url (loc "#{`url[:file]}") `if(url[:modified] && url[:modified] != "", ''(lastmod "#{`url[:modified]}"), '("")))). first = false,
+ baseMsg last -> ''((url (loc "#{`url[:file]}") `if(url[:modified] && url[:modified] != "", ''(lastmod "#{`url[:modified]}"), '(""))))))
baseMsg
)
''(`doctype("xml")
Please sign in to comment.
Something went wrong with that request. Please try again.