Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Cai <github@jimmycai.com>2022-01-20 13:38:16 +0300
committerGitHub <noreply@github.com>2022-01-20 13:38:16 +0300
commit3b98d3ba051f64c52ba6a21125b2016a61e6edc3 (patch)
treefcbae02e583a4f2957b61e31cce1f081eacc2aea
parentfe661c8c3826140c3b006b66abdd581a745e604c (diff)
feat(sidebar): link avatar to homepage (#465)
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/399
-rw-r--r--layouts/partials/sidebar/left.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/partials/sidebar/left.html b/layouts/partials/sidebar/left.html
index db05480..4442dfe 100644
--- a/layouts/partials/sidebar/left.html
+++ b/layouts/partials/sidebar/left.html
@@ -9,6 +9,7 @@
{{ with .Site.Params.sidebar.avatar }}
{{ if (default true .enabled) }}
<figure class="site-avatar">
+ <a href="{{ .Site.BaseURL | relLangURL }}">
{{ if not .local }}
<img src="{{ .src }}" width="300" height="300" class="site-logo" loading="lazy" alt="Avatar">
{{ else }}
@@ -22,7 +23,7 @@
{{ errorf "Failed loading avatar from %q" . }}
{{ end }}
{{ end }}
-
+ </a>
{{ with $.Site.Params.sidebar.emoji }}
<span class="emoji">{{ . }}</span>
{{ end }}