From 822533280afbf97e2228449119a4dd636ab45483 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Mon, 5 Jan 2015 15:25:03 -0600 Subject: Add sitemap generator --- tuxlite_tbs/templates/sitemap.html | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tuxlite_tbs/templates/sitemap.html (limited to 'tuxlite_tbs') diff --git a/tuxlite_tbs/templates/sitemap.html b/tuxlite_tbs/templates/sitemap.html new file mode 100644 index 0000000..e844e0b --- /dev/null +++ b/tuxlite_tbs/templates/sitemap.html @@ -0,0 +1,32 @@ + + + +{% for article in articles %} + + {{ SITEURL }}/{{ article.url }} + 0.8 + + + {% for translation in article.translations %} + + {{ SITEURL }}/{{ translation.url }} + 0.8 + + {% endfor %} +{% endfor %} + +{% for page in pages %} + + {{ SITEURL }}/{{ page.url }} + 1.0 + + + {% for translation in page.translations %} + + {{ SITEURL }}/{{ translation.url }} + 1.0 + + {% endfor %} +{% endfor %} + + -- cgit From ef8b4d804534de322a5d59ed9e89cacc586d2c12 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Thu, 18 Feb 2016 11:26:05 -0600 Subject: Fix on generated pages --- tuxlite_tbs/templates/archives.html | 2 +- tuxlite_tbs/templates/article.html | 1 + tuxlite_tbs/templates/category.html | 2 +- tuxlite_tbs/templates/page.html | 2 +- tuxlite_tbs/templates/tags.html | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) (limited to 'tuxlite_tbs') diff --git a/tuxlite_tbs/templates/archives.html b/tuxlite_tbs/templates/archives.html index 20fcd87..9ec0673 100644 --- a/tuxlite_tbs/templates/archives.html +++ b/tuxlite_tbs/templates/archives.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% block title %}{{ SITENAME }} <small>[archive]</small>{% endblock %} +{% block title %}{{ SITENAME }} - Archives{% endblock %} {% block content %} <h1>Archives</h1> diff --git a/tuxlite_tbs/templates/article.html b/tuxlite_tbs/templates/article.html index b5f3a63..4289464 100644 --- a/tuxlite_tbs/templates/article.html +++ b/tuxlite_tbs/templates/article.html @@ -1,4 +1,5 @@ {% extends "base.html" %} +{% block title %}{{ SITENAME }} - {{ article.title }}{% endblock %} {% block content %} <div class='article'> <div class="content-title"> diff --git a/tuxlite_tbs/templates/category.html b/tuxlite_tbs/templates/category.html index 52215e6..56f8e93 100644 --- a/tuxlite_tbs/templates/category.html +++ b/tuxlite_tbs/templates/category.html @@ -1,2 +1,2 @@ {% extends "index.html" %} -{% block title %}{{ SITENAME }} <small>{{ category }}</small>{% endblock %} \ No newline at end of file +{% block title %}{{ SITENAME }} - {{ category }}{% endblock %} diff --git a/tuxlite_tbs/templates/page.html b/tuxlite_tbs/templates/page.html index df15a33..c4ef8bb 100644 --- a/tuxlite_tbs/templates/page.html +++ b/tuxlite_tbs/templates/page.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% block title %} {% endblock %} +{% block title %}{{ SITENAME }} - {{ page.title }}{% endblock %} {% block content %} <section id="content" class="body"> <h2 class="content-title"> diff --git a/tuxlite_tbs/templates/tags.html b/tuxlite_tbs/templates/tags.html index 94a5fc3..3ace8d6 100644 --- a/tuxlite_tbs/templates/tags.html +++ b/tuxlite_tbs/templates/tags.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% block title %}{{ SITENAME }} <small>[tgs]</small>{% endblock %} +{% block title %}{{ SITENAME }} - Tags{% endblock %} {% block content %} <ul> {% for tag, articles in tags|sort %} -- cgit From f4ef46862d4700df5e2c91ae9dc10788b765d96e Mon Sep 17 00:00:00 2001 From: Mark Felder <github@feld.me> Date: Thu, 18 Feb 2016 11:27:31 -0600 Subject: Use title instead of windowtitle --- tuxlite_tbs/templates/base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tuxlite_tbs') diff --git a/tuxlite_tbs/templates/base.html b/tuxlite_tbs/templates/base.html index 62ffdaa..2ef2163 100644 --- a/tuxlite_tbs/templates/base.html +++ b/tuxlite_tbs/templates/base.html @@ -2,7 +2,7 @@ <html lang="{{ DEFAULT_LANG }}"> <head> <meta charset="utf-8"> - <title>{% block windowtitle %}{{ SITENAME }}{% endblock %} + {% block title %}{{ SITENAME }}{% endblock %} -- cgit