diff options
Diffstat (limited to 'templates/base.html')
-rw-r--r-- | templates/base.html | 17 |
1 files changed, 14 insertions, 3 deletions
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 @@ <!DOCTYPE html> +{% set permalink = "/weblog/" %} +{% if section %} + {% set permalink = section.permalink %} +{% elif page %} + {% set permalink = page.permalink %} +{% endif %} <html> <head> <meta charset="utf-8"> @@ -29,9 +35,14 @@ <div class="sidebar-container"> <div class="sticky-wrapper"> {% block sbdesc %} - <p>Hello, my name is Yaroslav de la Peña Smirnov, welcome to my - weblog. Sometimes I write software, sometimes I might write my mind - here. </p> + {% if permalink is containing("weblog") %} + <p>Hello, my name is Yaroslav de la Peña Smirnov, welcome to my weblog. + Sometimes I write software, sometimes I might write my mind here. </p> + {% elif permalink is containing("food") %} + <p>Here I keep some of the recipes for food that I cook. Nothing really + special in here, just food that I find delicious, and generally not very + expensive nor time consuming to cook.</p> + {% endif %} {% endblock %} <div class="links-container"> <a href="https://github.com/Yaroslav-95" title="GitHub"><span class="icon"></span></a> |