Add option to make logo always clickable
This commit is contained in:
parent
dfc3acd35c
commit
db695f5d34
2 changed files with 3 additions and 2 deletions
|
@ -10,4 +10,5 @@ highlight_theme = "base16-ocean-light"
|
||||||
[extra]
|
[extra]
|
||||||
logo = "https://easydocs.codeandmedia.com/logo.svg"
|
logo = "https://easydocs.codeandmedia.com/logo.svg"
|
||||||
release = "https://api.github.com/repos/getzola/zola/releases/latest"
|
release = "https://api.github.com/repos/getzola/zola/releases/latest"
|
||||||
favicon = "https://www.getzola.org/favicon.ico"
|
favicon = "https://www.getzola.org/favicon.ico"
|
||||||
|
easydocs_logo_always_clickable = false
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
<nav>
|
<nav>
|
||||||
{% if config.extra.logo %}
|
{% if config.extra.logo %}
|
||||||
{% if current_path == "/" %}
|
{% if current_path == "/" and not config.extra.easydocs_logo_always_clickable %}
|
||||||
<img src="{{ get_url(path=config.extra.logo) | safe }}" alt=""/>
|
<img src="{{ get_url(path=config.extra.logo) | safe }}" alt=""/>
|
||||||
|
|
||||||
{% else %}<a href="{{ config.base_url }}">
|
{% else %}<a href="{{ config.base_url }}">
|
||||||
|
|
Loading…
Reference in a new issue