diff options
author | Wolfgang Müller | 2021-06-16 16:18:47 +0200 |
---|---|---|
committer | Wolfgang Müller | 2021-06-16 17:04:24 +0200 |
commit | f28cb705310ff890c34ff45217b7870bcab5a66a (patch) | |
tree | f0f980f1496cadcb75b8ba09bff02bbde53129ff /templates/base.html | |
parent | 7fb5c0f88274637df2974fd06b8d9a6b42969d83 (diff) | |
download | zunzuncito-f28cb705310ff890c34ff45217b7870bcab5a66a.tar.gz |
templates: Make page titles mandatory
Currently we allow empty post titles, gracefully falling back to a
default value. This increases complexity somewhat. Since we think we'll
always be able to think of a title for a post, make it mandatory for now
to provide one.
Diffstat (limited to 'templates/base.html')
-rw-r--r-- | templates/base.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/base.html b/templates/base.html index 7599251..180e311 100644 --- a/templates/base.html +++ b/templates/base.html @@ -3,7 +3,7 @@ {%- set description = config.description -%} {%- if page -%} - {%- set description = page.title | default(value="post № " ~ page.slug) -%} + {%- set description = page.title -%} {%- elif term -%} {%- set description = "posts tagged with #" ~ term.name -%} {%- elif terms -%} |