Permalink
Browse files

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

  • Loading branch information...
flaviusb committed Aug 2, 2011
1 parent fa1c629 commit 33412f926d7e618b849cd8440a4d5d3e9408c544
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/sitemap.ik
View
@@ -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")

0 comments on commit 33412f9

Please sign in to comment.