From 915b499b001855f32ddcd2a4d5e64d95de7f45d8 Mon Sep 17 00:00:00 2001 From: Felipe Martin Date: Sun, 25 Mar 2018 13:07:47 +0200 Subject: [PATCH] Automatically add body class when using the main page template --- templates/page.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/page.html b/templates/page.html index 2d353c1..a0adb17 100644 --- a/templates/page.html +++ b/templates/page.html @@ -2,6 +2,8 @@ {% block page_title %}{{ super() }} | {{ this.title }}{% endblock %} +{% block body_class %}{{ this.title|lower }}{% endblock %} + {% block main_content %}
{{ this.body }}