From 7c08afd343e19c35151fc614611151033b7f2ad1 Mon Sep 17 00:00:00 2001 From: Vasudev Kamath Date: Sun, 7 May 2017 19:58:39 +0530 Subject: More fine tuning of template Allow smooth navigation and move redundant information to base.html. --- templates/article.html | 8 ++------ templates/base.html | 17 ++++++++++++----- templates/categories.html | 1 + templates/category.html | 1 + templates/index.html | 7 +------ templates/tag.html | 6 ++++++ templates/tags.html | 3 +-- 7 files changed, 24 insertions(+), 19 deletions(-) diff --git a/templates/article.html b/templates/article.html index 630323b..e00ffdc 100644 --- a/templates/article.html +++ b/templates/article.html @@ -1,10 +1,6 @@ {% extends "base.html" %} -{% block menu %} - | Home | - {% for p in PAGES %} - | {{p.title}} | - {% endfor %} -{% endblock %} +{% block title %} {{ article.title}} {%endblock title %} +{% block home %} | Home | {% endblock %} {% block article %}

{{ article.title |striptags }}

diff --git a/templates/base.html b/templates/base.html index 75ef425..e1dd592 100644 --- a/templates/base.html +++ b/templates/base.html @@ -36,11 +36,18 @@ -