diff options
| author | Jieiku | 2026-08-20 17:25:24 -0700 |
|---|---|---|
| committer | Jieiku | 2026-08-20 17:25:24 -0700 |
| commit | 1a3401dbf731b7d29daa42f3b7d6cd32503dd55e (patch) | |
| tree | 45ffeb857f541fa89b0deedc18c978fcac761b61 /templates/tags | |
| parent | b4969fde502b81ac5ea045cbf2d24c2db4bba8eb (diff) | |
| download | abridge-1a3401dbf731b7d29daa42f3b7d6cd32503dd55e.tar.gz abridge-1a3401dbf731b7d29daa42f3b7d6cd32503dd55e.tar.bz2 abridge-1a3401dbf731b7d29daa42f3b7d6cd32503dd55e.zip | |
Update for Zola 0.23.4
Diffstat (limited to 'templates/tags')
| -rw-r--r-- | templates/tags/list.html | 4 | ||||
| -rw-r--r-- | templates/tags/single.html | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/tags/list.html b/templates/tags/list.html index bbe195d..57ab343 100644 --- a/templates/tags/list.html +++ b/templates/tags/list.html @@ -1,6 +1,4 @@ {%- extends "base.html" -%} -{%- set uglyurls = (config.extra.uglyurls or false) -%} -{%- if config.extra.search_library -%}{%- if config.extra.search_library == "offline" -%}{%- set uglyurls = true -%}{%- endif -%}{%- endif -%} {%- block seo -%} {{- super() -}} {%- set title = "Tags" -%} @@ -13,6 +11,8 @@ {{<seo config={config} title={title} title_addition={title_addition} description={description or ""} is_home={true} />}} {%- endblock seo -%} {%- block content %} + {%- set uglyurls = (config.extra.uglyurls or false) -%} + {%- if config.extra.search_library -%}{%- if config.extra.search_library == "offline" -%}{%- set uglyurls = true -%}{%- endif -%}{%- endif -%} <div> <div class="c"> <h1>{{ terms | length }} {{<translate key="Tags" default="Tags" i18n={i18n} />}} </h1> diff --git a/templates/tags/single.html b/templates/tags/single.html index 02593a5..333fac9 100644 --- a/templates/tags/single.html +++ b/templates/tags/single.html @@ -1,6 +1,4 @@ {%- extends "base.html" -%} -{%- set uglyurls = (config.extra.uglyurls or false) -%} -{%- if config.extra.search_library -%}{%- if config.extra.search_library == "offline" -%}{%- set uglyurls = true -%}{%- endif -%}{%- endif -%} {%- block seo -%} {{- super() -}} {%- set title = term.name ~ " tag" -%} @@ -13,6 +11,8 @@ {{<seo config={config} title={title} title_addition={title_addition} description={description or ""} is_home={true} />}} {%- endblock seo -%} {%- block content %} + {%- set uglyurls = (config.extra.uglyurls or false) -%} + {%- if config.extra.search_library -%}{%- if config.extra.search_library == "offline" -%}{%- set uglyurls = true -%}{%- endif -%}{%- endif -%} <div> <h2>{{ term.name }}</h2> {%- for year, posts in term.pages | group_by(attribute="year") %} |
