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 | |
| 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')
| -rw-r--r-- | templates/404.html | 4 | ||||
| -rw-r--r-- | templates/archive.html | 4 | ||||
| -rw-r--r-- | templates/categories/list.html | 4 | ||||
| -rw-r--r-- | templates/categories/single.html | 5 | ||||
| -rw-r--r-- | templates/index.html | 5 | ||||
| -rw-r--r-- | templates/tags/list.html | 4 | ||||
| -rw-r--r-- | templates/tags/single.html | 4 |
7 files changed, 15 insertions, 15 deletions
diff --git a/templates/404.html b/templates/404.html index 02a4f54..c499874 100644 --- a/templates/404.html +++ b/templates/404.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() }} @@ -15,6 +13,8 @@ {%- 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> <h1>404 :(</h1> {#- Default English message #} diff --git a/templates/archive.html b/templates/archive.html index 3ec7d67..2dcf48d 100644 --- a/templates/archive.html +++ b/templates/archive.html @@ -4,8 +4,6 @@ This Template can also be used as the rendering template for Sections, eg: examp #} {% 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() -}} @@ -20,6 +18,8 @@ This Template can also be used as the rendering template for Sections, eg: examp {%- 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 %} {#- The following line is checking if the template is being used for the archive page or a section #} {%- if current_path is matching(pat="^(/[[:alpha:]][[:alpha:]])?/archive/$") %} {%- if section.extra.sec %} diff --git a/templates/categories/list.html b/templates/categories/list.html index b9a3972..4f1d396 100644 --- a/templates/categories/list.html +++ b/templates/categories/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 = "Categories" -%} @@ -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="Categories" default="Categories" i18n={i18n} />}} </h1> diff --git a/templates/categories/single.html b/templates/categories/single.html index 47bb6cb..6997db1 100644 --- a/templates/categories/single.html +++ b/templates/categories/single.html @@ -1,6 +1,5 @@ {%- 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 ~ " category" -%} @@ -13,6 +12,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") %} diff --git a/templates/index.html b/templates/index.html index fc75d95..3b42287 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,9 +3,6 @@ This Template Shows a paginated page of the Posts of a section with a short summ This Template can also be used directly for the index eg: example.com/ or as the rendering template for Sections, eg: example.com/blog/ example.com/software/ #} {%- 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() -}} @@ -28,6 +25,8 @@ This Template can also be used directly for the index eg: example.com/ or as the {%- 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> {%- set pages = paginator.pages if paginator else section.pages %} {% for page in pages %} 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") %} |
