From 4c5b478543184ea395e0e692d3bcf666fb7513ad Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 8 Nov 2014 15:58:26 -0600 Subject: Convert sitemap.xml template to Jinja2 Signed-off-by: Dan McGee --- templates/sitemaps/sitemap.xml | 9 --------- templates/sitemaps/sitemap.xml.jinja | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) delete mode 100644 templates/sitemaps/sitemap.xml create mode 100644 templates/sitemaps/sitemap.xml.jinja (limited to 'templates/sitemaps') diff --git a/templates/sitemaps/sitemap.xml b/templates/sitemaps/sitemap.xml deleted file mode 100644 index 50a95237..00000000 --- a/templates/sitemaps/sitemap.xml +++ /dev/null @@ -1,9 +0,0 @@ - - -{% for url in urlset %} -{{ url.location }} -{% if url.lastmod %}{{ url.lastmod|date:"Y-m-d" }}{% endif %} -{% if url.changefreq %}{{ url.changefreq }}{% endif %} -{% if url.priority %}{{ url.priority }}{% endif %} -{% endfor %} - diff --git a/templates/sitemaps/sitemap.xml.jinja b/templates/sitemaps/sitemap.xml.jinja new file mode 100644 index 00000000..0808a7de --- /dev/null +++ b/templates/sitemaps/sitemap.xml.jinja @@ -0,0 +1,9 @@ + + +{% for url in urlset %} +{{ url.location }} +{% if url.lastmod %}{{ url.lastmod|date("Y-m-d") }}{% endif %} +{% if url.changefreq %}{{ url.changefreq }}{% endif %} +{% if url.priority %}{{ url.priority }}{% endif %} +{% endfor %} + -- cgit v1.2.3-2-g168b