diff options
| author | Jieiku | 2023-09-27 12:48:48 -0700 |
|---|---|---|
| committer | Jieiku | 2023-09-27 12:48:48 -0700 |
| commit | 0968b8ffbae62db8fcbb2f724d61bf24642072e2 (patch) | |
| tree | 3bf4b1ca36e73ee3c01efb43f93af7bc97450fd2 /templates/macros | |
| parent | f5d32f6032ea172d0f1076b1fa04c96c9205285b (diff) | |
| download | abridge-0968b8ffbae62db8fcbb2f724d61bf24642072e2.tar.gz abridge-0968b8ffbae62db8fcbb2f724d61bf24642072e2.tar.bz2 abridge-0968b8ffbae62db8fcbb2f724d61bf24642072e2.zip | |
Fixes for Offline Site Build
Diffstat (limited to 'templates/macros')
| -rw-r--r-- | templates/macros/macros.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/macros/macros.html b/templates/macros/macros.html index d0ce1a0..21c943d 100644 --- a/templates/macros/macros.html +++ b/templates/macros/macros.html @@ -11,8 +11,9 @@ {%- endmacro page_listing %} -{%- macro series_link(inner, page) %} - {%- set uglyurls = config.extra.uglyurls | default(value=false) -%} +{%- macro series_link(inner, page, config) %} +{%- set uglyurls = config.extra.uglyurls | default(value=false) -%} +{%- if config.extra.offline %}{% set uglyurls = true %}{% endif %} {%- if inner.content == page.content %} <li><a href="{{ inner.permalink | safe }}{%- if uglyurls %}index.html{%- endif %}"><b>{{ inner.title }}</b></a></li> {% else %} |
