diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/templates/base.html b/templates/base.html index 8c42d17..9190f0e 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,17 +1,16 @@ {% import "macros.html" as macros -%} +{%- set description = config.description -%} + {%- if page -%} - {%- set description = "post № " ~ page.slug -%} - {%- set title = page.title | default(value=description) -%} + {%- set description = page.title | default(value="post № " ~ page.slug) -%} {%- elif term -%} {%- set description = "posts tagged with #" ~ term.name -%} - {%- set title = description -%} {%- elif terms -%} {%- set description = "all tags" -%} - {%- set title = description -%} {%- endif -%} -{%- set title = title | default(value=config.description) -%} +{%- set title = title | default(value=description) -%} <!DOCTYPE html> <html lang="en"> @@ -33,7 +32,7 @@ <header> <h1><a href="/">{{ config.title }}</a></h1> <div class="banner smaller"> - {{ config.description }}{% if description %} · {{ description }}{% endif %} + {{ description }} {% if section -%} · <a href="/atom.xml">feed</a> · <a href="/tags">tags</a> {% elif term -%} |