aboutsummaryrefslogtreecommitdiff
path: root/templates/base.html
diff options
context:
space:
mode:
authorJieiku2022-06-22 02:27:20 -0700
committerJieiku2022-06-22 02:27:20 -0700
commitcf1085f8952f5c349c4fbfdfb619f6f09ac9afa6 (patch)
tree40ae834889c819e9fed083f6624d36584e53a992 /templates/base.html
parentcd392fb852ef6d8e903721527ad184ccb147daa8 (diff)
downloadabridge-cf1085f8952f5c349c4fbfdfb619f6f09ac9afa6.tar.gz
abridge-cf1085f8952f5c349c4fbfdfb619f6f09ac9afa6.tar.bz2
abridge-cf1085f8952f5c349c4fbfdfb619f6f09ac9afa6.zip
Abridge.woff2 - 6 icon font
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html35
1 files changed, 20 insertions, 15 deletions
diff --git a/templates/base.html b/templates/base.html
index 8c74dd6..567c455 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -35,22 +35,27 @@
<header>
<nav>
<div>
- {%- if config.extra.logo %}
- <h1><a href="{{ config.base_url | safe }}/{%- if config.extra.uglyurls %}index.html{%- endif %}">{%- if config.extra.logo.file %}<img src="{{ config.base_url | safe }}/{{ config.extra.logo.file | safe }}"{%- if config.extra.logo.alt %} alt="{{ config.extra.logo.alt | safe }}"{%- endif %}{%- if config.extra.logo.width %} width="{{ config.extra.logo.width | safe }}"{%- endif %}{%- if config.extra.logo.height %} height="{{ config.extra.logo.height | safe }}"{%- endif %} />{%- endif %}{%- if config.extra.logo.text %}{{ config.extra.logo.text | safe }}{%- endif %}</a></h1>
- {%- elif config.extra.textlogo %}
+ {%- if config.extra.logo -%}
+ <h1><a href="{{ config.base_url | safe }}/{%- if config.extra.uglyurls %}index.html{%- endif %}">
+ {%- if config.extra.logo.file -%}
+ <img src="{{ config.base_url | safe }}/{{ config.extra.logo.file | safe }}"{%- if config.extra.logo.alt %} alt="{{ config.extra.logo.alt | safe }}"{%- endif %}{%- if config.extra.logo.width %} width="{{ config.extra.logo.width | safe }}"{%- endif %}{%- if config.extra.logo.height %} height="{{ config.extra.logo.height | safe }}"{%- endif %} />
+ {%- endif -%}
+ {%- if config.extra.logo.text -%}{{ config.extra.logo.text | safe }}{%- endif -%}
+ </a></h1>
+ {%- elif config.extra.textlogo -%}
<h1><a href="{{ config.base_url | safe }}/{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ config.extra.textlogo | safe }}</a></h1>
- {%- elif config.title %}
+ {%- elif config.title -%}
<h1><a href="{{ config.base_url | safe }}/{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ config.title | safe }}</a></h1>
- {%- endif %}
+ {%- endif -%}
</div>
<div>
<ul>
- {%- 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 %}">{{ i.name | safe }}</a></h2> </li>
- {%- endfor %}
- {%- if config.extra.js_theme %}
- <li class="js">{%- if config.extra.icon_contrast %}<i type="reset" id="mode" class="{{ config.extra.icon_contrast }}"></i>{%- else %}<i type="reset" id="mode" class="mode">&#9728;</i>{%- endif %}</li>
- {%- endif %}
+ {%- 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 %}">{{ i.name | safe }}</a></h2> </li>
+ {%- endfor -%}
+ {%- if config.extra.js_theme -%}
+ <li class="js">{%- if config.extra.icon_adjust -%}<i type="reset" id="mode" class="{{ config.extra.icon_adjust }}"></i>{%- else -%}<i type="reset" id="mode" class="mode">&#9728;</i>{%- endif -%}</li>
+ {%- endif -%}
</ul>
</div>
{%- if config.build_search_index %}
@@ -58,7 +63,7 @@
<form class="js" name="goSearch">
<div class="searchd">
<input id="userinput" type="text" placeholder="Search" autocomplete="off" />
- <button type="submit" title="Search">{%- if config.extra.icon_search %}<i class="{{ config.extra.icon_search }}"></i>{%- else %}<span class="si">&#8981;</span>{%- endif %}</button>
+ <button type="submit" title="Search">{%- if config.extra.icon_search -%}<i class="{{ config.extra.icon_search }}"></i>{%- else -%}<span class="si">&#8981;</span>{%- endif -%}</button>
</div>
<div><div id="suggestions"></div></div>
</form>
@@ -95,9 +100,9 @@
{#- Copyright END #}
<nav>
<ul>
- {%- for i in config.extra.menu_footer %}
- <li{%- if config.extra.footer_size %} class="{{ config.extra.footer_size }}"{% endif %}><a href="{{ get_url(path=i.url, trailing_slash=i.slash) }}{%- if i.slash and config.extra.uglyurls %}index.html{%- endif %}">{{ i.name | safe }}</a> </li>
- {%- endfor %}
+ {%- for i in config.extra.menu_footer -%}
+ <li{%- if config.extra.footer_size %} class="{{ config.extra.footer_size }}"{% endif %}> <a href="{{ get_url(path=i.url, trailing_slash=i.slash) }}{%- if i.slash and config.extra.uglyurls %}index.html{%- endif %}"> {{ i.name | safe }} </a> </li>
+ {%- endfor -%}
</ul>
</nav>
{%- if config.extra.footer_credit | default(value=true) %}