diff options
author | Jelle van der Waa <jelle@vdwaa.nl> | 2016-11-30 20:10:35 +0100 |
---|---|---|
committer | Jelle van der Waa <jelle@vdwaa.nl> | 2017-05-02 21:13:56 +0200 |
commit | 5e56e7ff220971c6865f58eb18040ae7e6404c39 (patch) | |
tree | e5eb269bfdb0e88581ec0d1544d751e1ed8179bd /templates/sitemaps/news_sitemap.xml.jinja | |
parent | 6489bd1a2e6faeff624efa93fa6f1b6f6535ca97 (diff) |
sitemap: port jinja templates to django
Port the .jinja templates to pure django templates
Diffstat (limited to 'templates/sitemaps/news_sitemap.xml.jinja')
-rw-r--r-- | templates/sitemaps/news_sitemap.xml.jinja | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/templates/sitemaps/news_sitemap.xml.jinja b/templates/sitemaps/news_sitemap.xml.jinja deleted file mode 100644 index 97dd17b5..00000000 --- a/templates/sitemaps/news_sitemap.xml.jinja +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9"> -{% for url in urlset %}<url> -<loc>{{ url.location }}</loc> -{% if url.lastmod %}<lastmod>{{ url.lastmod|date("Y-m-d") }}</lastmod>{% endif %} -{% if url.changefreq %}<changefreq>{{ url.changefreq }}</changefreq>{% endif %} -{% if url.priority %}<priority>{{ url.priority }}</priority>{% endif %} -<news:news> - <news:publication><news:name>Arch Linux News</news:name><news:language>en</news:language></news:publication> - {% if url.item.postdate %}<news:publication_date>{{ url.item.postdate|date("c") }}</news:publication_date>{% endif %} - {% if url.item.title %}<news:title>{{ url.item.title }}</news:title>{% endif %} -</news:news> -</url>{% endfor %} -</urlset> |