diff options
author | Christoph Cullmann <cullmann@kde.org> | 2021-08-29 11:48:16 +0200 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2021-08-29 11:48:16 +0200 |
commit | 0321812a29e6ec32663556fa7abe2bf2880e5762 (patch) | |
tree | abe0294bd63c046d2b5a164d987d67a64db2c2f6 /themes/CodeIT/layouts/partials/home | |
parent | f2375511935010a1aeee5683c30b3efb928bef2e (diff) |
update to https://github.com/sunt-programator/CodeIT/releases/tag/v0.2.0
Diffstat (limited to 'themes/CodeIT/layouts/partials/home')
-rw-r--r-- | themes/CodeIT/layouts/partials/home/profile.html | 7 |
1 files changed, 4 insertions, 3 deletions
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 -}} <div class="home-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 -}} <a href="{{ $url }}"{{ with .Title | default .Name }} title="{{ . }}"{{ end }}{{ if (urls.Parse $url).Host }} rel="noopener noreferrer" target="_blank"{{ end }}> - {{- dict "Src" $avatar | partial "plugin/image.html" -}} + {{- dict "Src" $avatar "Alt" $avatarAlt | partial "plugin/image.html" -}} </a> {{- else -}} - {{- dict "Src" $avatar | partial "plugin/image.html" -}} + {{- dict "Src" $avatar "Alt" $avatarAlt | partial "plugin/image.html" -}} {{- end -}} </div> {{- end -}} @@ -34,7 +35,7 @@ <div id="{{ $id }}" class="typeit"></div> {{- dict $id (slice $id) | dict "typeitMap" | merge ($.Scratch.Get "this") | $.Scratch.Set "this" -}} {{- else -}} - {{- . -}} + {{- . | safeHTML -}} {{- end -}} </h2> {{- end -}} |