aboutsummaryrefslogtreecommitdiff
path: root/templates/macros/page.html
diff options
context:
space:
mode:
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 %}