From ebce7b970b988dca59960b0b7d7a6efa125f98ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gonz=C3=A1lez?= Date: Tue, 19 Jun 2018 23:07:39 +0200 Subject: [PATCH] add classes to body tag (#74) * add classes to body tag depending on page or article slug, add page-%slug% or article-%slug% class to * add page/article/category/tag slug to body class --- templates/base.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/templates/base.html b/templates/base.html index 7771a68..9097ed6 100644 --- a/templates/base.html +++ b/templates/base.html @@ -99,7 +99,15 @@ {% endif %} - +{% if page %} + +{% elif article %} + +{% elif category %} + +{% elif tag %} + +{% endif %}>