aboutsummaryrefslogtreecommitdiff
path: root/templates/macros/page.html
diff options
context:
space:
mode:
authorJieiku2023-09-08 15:08:39 -0700
committerJieiku2023-09-08 15:08:39 -0700
commit5e55301cc2c91a5f0e99000bfe4d7ec262ee78c1 (patch)
treed034c24a0debdb22066c659fa67ab5564227acdd /templates/macros/page.html
parent288de9dac39869ac94d0265351f5884a78dce5a8 (diff)
downloadabridge-5e55301cc2c91a5f0e99000bfe4d7ec262ee78c1.tar.gz
abridge-5e55301cc2c91a5f0e99000bfe4d7ec262ee78c1.tar.bz2
abridge-5e55301cc2c91a5f0e99000bfe4d7ec262ee78c1.zip
Refactor package.json2.2.0
Diffstat (limited to 'templates/macros/page.html')
-rw-r--r--templates/macros/page.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/macros/page.html b/templates/macros/page.html
index 7fd0f77..23b9e09 100644
--- a/templates/macros/page.html
+++ b/templates/macros/page.html
@@ -1,5 +1,7 @@
{%- macro page_listing(page, config) %}
+{%- set uglyurls = config.extra.uglyurls | default(value=false) -%}
+{%- if config.extra.offline %}{% set uglyurls = true %}{% endif %}
<div class="toc-item">
- <a href="{{ page.permalink | safe}}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ page.title }}</a>
+ <a href="{{ page.permalink | safe}}{%- if uglyurls %}index.html{%- endif %}">{{ page.title }}</a>
</div>
{%- endmacro page_listing %}