summaryrefslogtreecommitdiff
path: root/themes/CodeIT/layouts/partials/home/profile.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/CodeIT/layouts/partials/home/profile.html')
-rw-r--r--themes/CodeIT/layouts/partials/home/profile.html7
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 -}}