fix: correct global site context access for the home page link in the sidebar
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
{{ with .Site.Params.sidebar.avatar }}
|
{{ with .Site.Params.sidebar.avatar }}
|
||||||
{{- $avatar := partial "helper/image" (dict "Image" . "Resources" resources) -}}
|
{{- $avatar := partial "helper/image" (dict "Image" . "Resources" resources) -}}
|
||||||
<figure class="site-avatar">
|
<figure class="site-avatar">
|
||||||
<a href="{{ .Site.Home.RelPermalink }}">
|
<a href="{{ $.Site.Home.RelPermalink }}">
|
||||||
<img src="{{ $avatar.Permalink }}"
|
<img src="{{ $avatar.Permalink }}"
|
||||||
width="{{ $avatar.Width }}"
|
width="{{ $avatar.Width }}"
|
||||||
height="{{ $avatar.Height }}"
|
height="{{ $avatar.Height }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user