fix: correct global site context access for the home page link in the sidebar

This commit is contained in:
Jimmy Cai
2026-01-27 00:05:05 +01:00
parent 33b7de9457
commit dc0d105e7c
+1 -1
View File
@@ -9,7 +9,7 @@
{{ with .Site.Params.sidebar.avatar }}
{{- $avatar := partial "helper/image" (dict "Image" . "Resources" resources) -}}
<figure class="site-avatar">
<a href="{{ .Site.Home.RelPermalink }}">
<a href="{{ $.Site.Home.RelPermalink }}">
<img src="{{ $avatar.Permalink }}"
width="{{ $avatar.Width }}"
height="{{ $avatar.Height }}"