From c68225e360a95f000bc08bf9aa3fbfdfe942572e Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Sat, 13 Jun 2020 19:02:06 +0300 Subject: template fixes --- templates/base.html | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'templates/base.html') diff --git a/templates/base.html b/templates/base.html index 2974335..8af6021 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,4 +1,10 @@ +{% set permalink = "/weblog/" %} +{% if section %} + {% set permalink = section.permalink %} +{% elif page %} + {% set permalink = page.permalink %} +{% endif %} @@ -29,9 +35,14 @@