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
|
@ -11,3 +11,4 @@ highlight_theme = "base16-ocean-light"
|
|||
logo = "https://easydocs.codeandmedia.com/logo.svg"
|
||||
release = "https://api.github.com/repos/getzola/zola/releases/latest"
|
||||
favicon = "https://www.getzola.org/favicon.ico"
|
||||
easydocs_logo_always_clickable = false
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
<nav>
|
||||
{% 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=""/>
|
||||
|
||||
{% else %}<a href="{{ config.base_url }}">
|
||||
|
|
Loading…
Reference in a new issue