From 3b62fb97a5c2e91134495d50e1cbe7f603867b49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=CC=88kull=20So=CC=81lberg=20Au=C3=B0unsson?= Date: Mon, 5 Dec 2011 17:25:13 +0000 Subject: [PATCH] Calepin theme: Add canonical and fix URLs in tag page. --- calepin/templates/article.html | 6 ++++++ calepin/templates/base.html | 1 + calepin/templates/index.html | 4 ++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/calepin/templates/article.html b/calepin/templates/article.html index c2f2cf2f1..abdaa1a0b 100644 --- a/calepin/templates/article.html +++ b/calepin/templates/article.html @@ -2,6 +2,12 @@ {% block title %}{{ article.title }} - {{ super() }}{%endblock%} +{% block head -%} +{% if article.canonical %} + +{%- endif %} +{% endblock %} + {% block content %}
diff --git a/calepin/templates/base.html b/calepin/templates/base.html index 41d6fc371..fc7530603 100644 --- a/calepin/templates/base.html +++ b/calepin/templates/base.html @@ -17,6 +17,7 @@ + {%- block head %}{% endblock %} diff --git a/calepin/templates/index.html b/calepin/templates/index.html index 07a0a3aff..addfb9980 100644 --- a/calepin/templates/index.html +++ b/calepin/templates/index.html @@ -8,9 +8,9 @@ {% for article in articles_page.object_list %}
  • - {{ article.locale_date }} + {{ article.locale_date }} -

    {{ article.title }}

    +

    {{ article.title }}

  • {% endfor %}