diff options
author | Ralph Amissah <ralph@amissah.com> | 2013-06-22 01:18:03 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2013-06-22 01:18:03 -0400 |
commit | 6bf6c320b8ad2cb5aa588575565af70b437aa322 (patch) | |
tree | b2c92c4b75de5c9dcbfb6639e56aac38cf545e67 /lib/sisu/v5/sitemaps.rb | |
parent | debian/changelog (4.1.4-1) (diff) | |
parent | v5: general code cleaning (diff) |
Merge tag 'sisu_4.1.5' into debian/sid
SiSU 4.1.5
Diffstat (limited to 'lib/sisu/v5/sitemaps.rb')
-rw-r--r-- | lib/sisu/v5/sitemaps.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/sisu/v5/sitemaps.rb b/lib/sisu/v5/sitemaps.rb index fcdfe883..a8cb5e97 100644 --- a/lib/sisu/v5/sitemaps.rb +++ b/lib/sisu/v5/sitemaps.rb @@ -127,7 +127,7 @@ module SiSU_Sitemaps def sitemap_index sitemap_files=Dir.glob("#{@env.path.sitemaps}/sitemap_*.xml") sitemap_idx=[] - sitemap_idx <<<<WOK + sitemap_idx << <<WOK <?xml version="1.0" encoding="UTF-8"?> <sitemapindex xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemaps/0.9 @@ -137,19 +137,19 @@ WOK sitemap_files.each do |s| f=s.gsub(/.+?\/sitemap_([^\/]+?)\.xml$/,'\1') @trans.char_enc.utf8(f) if @sys.locale =~/utf-?8/i #% utf8 -sitemap_idx <<<<WOK +sitemap_idx << <<WOK <sitemap> <loc>#{@env.path.url.remote}/#{f}/sitemap.xml</loc> </sitemap> WOK end - sitemap_idx <<<<WOK + sitemap_idx << <<WOK </sitemapindex> WOK - idx=sitemap_idx.join + sitemap_idx.join end def sitemap - map=if defined? @md.date.modified \ + if defined? @md.date.modified \ and @md.date.modified=~/\d{4}-\d{2}-\d{2}/ sitemap_date_modified else sitemap_no_date |