diff options
| author | Jieiku | 2023-05-22 22:37:44 -0700 |
|---|---|---|
| committer | Jieiku | 2023-05-22 22:37:44 -0700 |
| commit | 6dcec618d0ff0a2270f787f62267a0622275c69d (patch) | |
| tree | f0dd674fe43331db55ddae38808749de0323f030 /templates/base.html | |
| parent | 71d977d49afbf93e0c736815e36d59664991fa18 (diff) | |
| download | abridge-6dcec618d0ff0a2270f787f62267a0622275c69d.tar.gz abridge-6dcec618d0ff0a2270f787f62267a0622275c69d.tar.bz2 abridge-6dcec618d0ff0a2270f787f62267a0622275c69d.zip | |
Load Tinysearch/Stork On Demand
Diffstat (limited to 'templates/base.html')
| -rw-r--r-- | templates/base.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/base.html b/templates/base.html index 642239b..a1e4918 100644 --- a/templates/base.html +++ b/templates/base.html @@ -51,14 +51,14 @@ </div> <div> <ul> - {%- set js_theme=config.extra.js_theme | default(value=true) -%} - {%- if config.extra.menu or js_theme %} + {%- set js_switcher=config.extra.js_switcher | default(value=true) -%} + {%- if config.extra.menu or js_switcher %} {%- if config.extra.menu %} {%- for i in config.extra.menu -%} <li> <h2><a href="{{ get_url(path=i.url, trailing_slash=i.slash) }}{%- if i.slash and config.extra.uglyurls %}index.html{%- endif %}"{% if i.blank %} target="_blank"{% endif %}>{{ i.name | safe }}</a></h2> </li> {%- endfor -%} {%- endif -%} - {%- if js_theme -%} + {%- if js_switcher -%} {%- set icon_adjust=config.extra.icon_adjust | default(value="svgs adjust") -%} <li class="js">{%- if icon_adjust -%}<i type="reset" id="mode" class="{{ icon_adjust }}"></i>{%- else -%}<i type="reset" id="mode" class="mode">☀</i>{%- endif -%}</li> {%- endif -%} |
