mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 11:05:48 +02:00
Merge pull request #138 from creative-commoners/pulls/2.0/cldr-date
FIX Use CLDR date format in sitemap template
This commit is contained in:
commit
f51c9e12bf
@ -3,6 +3,6 @@
|
||||
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><% loop Sitemaps %>
|
||||
<sitemap>
|
||||
<loc>{$AbsoluteBaseURL}sitemap.xml/sitemap/$ClassName/$Page.xml</loc>
|
||||
<% if LastModified %><lastmod>$LastModified</lastmod><% end_if %>
|
||||
<% if $LastModified %><lastmod>$LastModified</lastmod><% end_if %>
|
||||
</sitemap><% end_loop %>
|
||||
</sitemapindex>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<% loop $Items %>
|
||||
<url>
|
||||
<loc>$AbsoluteLink</loc>
|
||||
<% if $LastEdited %><lastmod>$LastEdited.Format(YYYY-MM-dd)</lastmod><% end_if %>
|
||||
<% if $LastEdited %><lastmod>$LastEdited.Format("y-MM-dd'T'HH:mm:ss")</lastmod><% end_if %>
|
||||
<% if $ChangeFrequency %><changefreq>$ChangeFrequency</changefreq><% end_if %>
|
||||
<% if $GooglePriority %><priority>$GooglePriority</priority><% end_if %>
|
||||
</url>
|
||||
|
Loading…
Reference in New Issue
Block a user