Add option to make logo always clickable

This commit is contained in:
Che 2022-05-29 04:30:56 -04:00
parent dfc3acd35c
commit db695f5d34
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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 }}">