aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJieiku2022-05-31 02:15:22 -0700
committerJieiku2022-05-31 02:15:22 -0700
commit6ddcae4da7cc9cbd1436d565a2a3fd1e8e0a0cea (patch)
treefbd003b4e24d3dcf39304690c161f01675cb61f7 /templates
parent53e308d1709cc7be6d3f819b693f39a7fa2a72bc (diff)
downloadabridge-6ddcae4da7cc9cbd1436d565a2a3fd1e8e0a0cea.tar.gz
abridge-6ddcae4da7cc9cbd1436d565a2a3fd1e8e0a0cea.tar.bz2
abridge-6ddcae4da7cc9cbd1436d565a2a3fd1e8e0a0cea.zip
Logo & Theme
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/base.html b/templates/base.html
index 0eebe85..db0d505 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -30,7 +30,13 @@
<header>
<nav>
<header>
- <h1><a href="{{ get_url(path="/", trailing_slash=true) }}">{{ config.extra.textlogo | safe }}</a></h1>
+ {%- if config.extra.logo %}
+ <h1><a href="{{ config.base_url | safe }}">{%- 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 }}">{{ config.extra.textlogo | safe }}</a></h1>
+ {%- elif config.title %}
+ <h1><a href="{{ config.base_url | safe }}">{{ config.title | safe }}</a></h1>
+ {%- endif %}
</header>
<div>
<ul>