Source

o-blog / templates / blog_sitemap.html

Full commit
<?xml version='1.0' encoding='UTF-8'?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
  <url>
    <loc><lisp>(ob:get-header "URL")</lisp>/</loc>
    <lastmod><lisp>(ob:format-date (ob:get-header "DATE"))</lisp></lastmod>
    <changefreq>daily</changefreq>
    <priority>1.0</priority>
  </url>
  
  <lisp>(loop for POST in STATIC
    do (when (not (ob:post-sitemap POST)) 
    (ob:insert-template "sitemap_static.html")))
  </lisp>

  <lisp>(loop for POST in POSTS
    do (when (not (ob:post-sitemap POST)) 
    (ob:insert-template "sitemap_post.html")))
  </lisp>
</urlset>