From 0c7cb4486a89ec6fe9680e6569ef41d4b82d557d Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Thu, 18 Feb 2021 22:21:36 +0100 Subject: use maintained theme --- themes/CodeIT/layouts/partials/home/profile.html | 95 ++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 themes/CodeIT/layouts/partials/home/profile.html (limited to 'themes/CodeIT/layouts/partials/home/profile.html') diff --git a/themes/CodeIT/layouts/partials/home/profile.html b/themes/CodeIT/layouts/partials/home/profile.html new file mode 100644 index 0000000..7a573ae --- /dev/null +++ b/themes/CodeIT/layouts/partials/home/profile.html @@ -0,0 +1,95 @@ +{{- $profile := .Site.Params.home.profile -}} +
+ {{- $avatar := $profile.avatarURL -}} + {{- with $profile.gravatarEmail -}} + {{- $avatar = md5 . | printf "https://www.gravatar.com/avatar/%v?s=240&d=mp" -}} + {{- end -}} + {{- if $avatar -}} +
+ {{- $menus := $.Site.Menus.main | default slice -}} + {{- with index $menus 0 -}} + {{- $url := .URL | relLangURL -}} + {{- with .Page -}} + {{- $url = .RelPermalink -}} + {{- end -}} + + {{- dict "Src" $avatar | partial "plugin/image.html" -}} + + {{- else -}} + {{- dict "Src" $avatar | partial "plugin/image.html" -}} + {{- end -}} +
+ {{- end -}} + + {{- with $profile.title -}} +

+ {{- . | safeHTML -}} +

+ {{- end -}} + + {{- with $profile.subtitle -}} +

+ {{- if $profile.typeit -}} + {{- $id := dict "Content" . "Scratch" $.Scratch | partial "function/id.html" -}} +
+ {{- dict $id (slice $id) | dict "typeitMap" | merge ($.Scratch.Get "this") | $.Scratch.Set "this" -}} + {{- else -}} + {{- . -}} + {{- end -}} +

+ {{- end -}} + + {{- if $profile.social -}} + + {{- end -}} + + {{- with $profile.disclaimer -}} +

+ {{- . | safeHTML -}} +

+ {{- end -}} +
-- cgit v1.2.3