mirror of
https://github.com/pawroman/zola-theme-terminimal.git
synced 2025-01-09 20:21:06 +01:00
Fix: link the top-left logo to logo_home_link
This fix works by adding missing two missing `.extra`'s when accessing the `logo_home_link` in the `header` template block. The bug is caused by the first missing `.extra`, which makes Tera assume that `logo_home_link` variable doesn't exist, so the `if` trigger for using it never fires. This means that the logo will always link to the default value of `base_url`. The second missing `.extra` comes after the `if` fires. It's used to set the value of `logo_link` to `logo_home_link`.
This commit is contained in:
parent
9347dda144
commit
d7f9e84041
|
@ -29,8 +29,8 @@
|
||||||
<header class="header">
|
<header class="header">
|
||||||
<div class="header__inner">
|
<div class="header__inner">
|
||||||
<div class="header__logo">
|
<div class="header__logo">
|
||||||
{%- if config.logo_home_link %}
|
{%- if config.extra.logo_home_link %}
|
||||||
{% set logo_link = config.logo_home_link %}
|
{% set logo_link = config.extra.logo_home_link %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% set logo_link = config.base_url %}
|
{% set logo_link = config.base_url %}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|
Loading…
Reference in a new issue