From 0321812a29e6ec32663556fa7abe2bf2880e5762 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Sun, 29 Aug 2021 11:48:16 +0200 Subject: update to https://github.com/sunt-programator/CodeIT/releases/tag/v0.2.0 --- themes/CodeIT/layouts/partials/home/profile.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'themes/CodeIT/layouts/partials/home') diff --git a/themes/CodeIT/layouts/partials/home/profile.html b/themes/CodeIT/layouts/partials/home/profile.html index 7a573ae..ba2462e 100644 --- a/themes/CodeIT/layouts/partials/home/profile.html +++ b/themes/CodeIT/layouts/partials/home/profile.html @@ -7,16 +7,17 @@ {{- if $avatar -}}
{{- $menus := $.Site.Menus.main | default slice -}} + {{- $avatarAlt := $profile.avatarAlt | default .Site.Author.name -}} {{- with index $menus 0 -}} {{- $url := .URL | relLangURL -}} {{- with .Page -}} {{- $url = .RelPermalink -}} {{- end -}} - {{- dict "Src" $avatar | partial "plugin/image.html" -}} + {{- dict "Src" $avatar "Alt" $avatarAlt | partial "plugin/image.html" -}} {{- else -}} - {{- dict "Src" $avatar | partial "plugin/image.html" -}} + {{- dict "Src" $avatar "Alt" $avatarAlt | partial "plugin/image.html" -}} {{- end -}}
{{- end -}} @@ -34,7 +35,7 @@
{{- dict $id (slice $id) | dict "typeitMap" | merge ($.Scratch.Get "this") | $.Scratch.Set "this" -}} {{- else -}} - {{- . -}} + {{- . | safeHTML -}} {{- end -}} {{- end -}} -- cgit v1.2.3