silverstripe-googlesitemaps/templates/GoogleSitemap.ss
2012-09-06 21:59:25 +12:00

12 lines
543 B
Scheme

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type='text/xsl' href='{$BaseHref}googlesitemaps/templates/xml-sitemap.xsl'?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<% loop $Items %>
<url>
<loc>$AbsoluteLink</loc>
<% if $LastEdited %><lastmod>$LastEdited.Format(c)</lastmod><% end_if %>
<% if $ChangeFreq %><changefreq>$ChangeFreq</changefreq><% end_if %>
<% if $Priority %><priority>$Priority</priority><% end_if %>
</url>
<% end_loop %>
</urlset>