From 4df407bf2a1735c5ab5d75230e66a688ed231b08 Mon Sep 17 00:00:00 2001 From: Vasudev Kamath Date: Sun, 17 Apr 2016 16:55:53 +0530 Subject: Update theme for my taste --- templates/article.html | 45 ++++++++++++--------- templates/base.html | 107 +++++++++++++++++++++++-------------------------- templates/index.html | 17 ++++---- templates/page.html | 17 +++++--- 4 files changed, 95 insertions(+), 91 deletions(-) (limited to 'templates') diff --git a/templates/article.html b/templates/article.html index d558183..630323b 100644 --- a/templates/article.html +++ b/templates/article.html @@ -1,4 +1,14 @@ {% extends "base.html" %} +{% block menu %} + | Home | + {% for p in PAGES %} + | {{p.title}} | + {% endfor %} +{% endblock %} +{% block article %} +

{{ + article.title |striptags }}

+{% endblock %} {% block head %} {{ super() }} {% for keyword in article.keywords %} @@ -12,37 +22,34 @@ {% for tag in article.tags %} {% endfor %} - {% endblock %} {% block content %}
-
-

- {{ article.title }}

- {% import 'translations.html' as translations with context %} - {{ translations.translations_for(article) }} -
- - {{ article.locale_date }} +

Posted on {{ article.date|strftime('%b %d, %Y')}} + {% if article.authors %} By {{ article.author }} + {% endif %} + {% if article.category %} under {{ article.category }} + {% endif %} +

- {% if article.modified %} + {% if article.modified %} - {{ article.locale_modified }} + Modified on {{ article.locale_modified }} - {% endif %} - {% if article.authors %} -
- By {% for author in article.authors %} - {{ author }} - {% endfor %} -
{% endif %}
{{ article.content }}
+
{% endblock %} diff --git a/templates/base.html b/templates/base.html index a1839b2..0b1808b 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,64 +1,57 @@ - {% block head %} - {% block title %}{{ SITENAME }}{% endblock title %} - - {% if FEED_ALL_ATOM %} - - {% endif %} - {% if FEED_ALL_RSS %} - - {% endif %} - {% if FEED_ATOM %} - - {% endif %} - {% if FEED_RSS %} - - {% endif %} - {% if CATEGORY_FEED_ATOM and category %} - - {% endif %} - {% if CATEGORY_FEED_RSS and category %} - - {% endif %} - {% if TAG_FEED_ATOM and tag %} - - {% endif %} - {% if TAG_FEED_RSS and tag %} - - {% endif %} - {% endblock head %} - + {% block head %} + {% block title %}Vasudev Kamath - {{ SITENAME }}{% endblock title %} + + + {% if FEED_ALL_ATOM %} + + {% endif %} + {% if FEED_ALL_RSS %} + + {% endif %} + {% if FEED_ATOM %} + + {% endif %} + {% if FEED_RSS %} + + {% endif %} + {% if CATEGORY_FEED_ATOM and category %} + + {% endif %} + {% if CATEGORY_FEED_RSS and category %} + + {% endif %} + {% if TAG_FEED_ATOM and tag %} + + {% endif %} + {% if TAG_FEED_RSS and tag %} + + {% endif %} + + + {% endblock head %} - - - - {% block content %} - {% endblock %} - + + +
+ {% block content %} + {% endblock %} +
+
+ diff --git a/templates/index.html b/templates/index.html index 4bd8198..429020e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,4 +1,10 @@ {% extends "base.html" %} +{% block menu %} + {% for p in PAGES %} + | {{p.title}} | + {% endfor %} +

Home

+{% endblock %} {% block content %}
{% block content_title %} @@ -8,16 +14,7 @@
    {% for article in articles_page.object_list %}
  1. {% endfor %}
diff --git a/templates/page.html b/templates/page.html index 5ceb779..b834171 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,12 +1,19 @@ {% extends "base.html" %} +{% block menu %} +| Home | +{% for p in pages %} +{% if p.title != page.title %} +| {{p.title}} | +{% endif %} +{% endfor %} +{% endblock %} +{% block page %} +

{{ + page.title|striptags}}

+{% endblock %} {% block title %}{{ page.title }}{%endblock%} {% block content %} -

{{ page.title }}

- {% import 'translations.html' as translations with context %} - {{ translations.translations_for(page) }} - {{ page.content }} - {% if page.modified %}

Last updated: {{ page.locale_modified }} -- cgit v1.2.3