From 5e55301cc2c91a5f0e99000bfe4d7ec262ee78c1 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Fri, 8 Sep 2023 15:08:39 -0700 Subject: Refactor package.json --- templates/base.html | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'templates/base.html') diff --git a/templates/base.html b/templates/base.html index db58b72..8d85516 100644 --- a/templates/base.html +++ b/templates/base.html @@ -2,6 +2,8 @@ {%- import "macros/social.html" as social_macros %} {%- import "macros/page.html" as page_macros %} {%- import "macros/macros.html" as macros %} +{%- set uglyurls = config.extra.uglyurls | default(value=false) -%} +{%- if config.extra.offline %}{% set uglyurls = true %}{% endif %} @@ -27,7 +29,6 @@ {{- macros_head::security(config=config) }} {{- macros_head::favicons(config=config) }} - {{- macros_head::pwa(config=config) }} {%- block comments_init %} {%- endblock comments_init %} @@ -38,18 +39,18 @@ {%- endif %} -- cgit v1.3.1