summaryrefslogtreecommitdiff
path: root/themes/CodeIT/layouts/partials/home/profile.html
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2022-08-14 19:01:21 +0200
committerChristoph Cullmann <cullmann@kde.org>2022-08-14 19:01:21 +0200
commit51fb029ca27d67d7cd67352cdede45e5b25868f7 (patch)
tree6d8e34b2abdc757310ffe11189e926d017417bae /themes/CodeIT/layouts/partials/home/profile.html
parent260b6803e78609e16ad3d59792f1681d9df0f1e4 (diff)
switch back to LoveIt, other theme is deprectated
Diffstat (limited to 'themes/CodeIT/layouts/partials/home/profile.html')
-rw-r--r--themes/CodeIT/layouts/partials/home/profile.html96
1 files changed, 0 insertions, 96 deletions
diff --git a/themes/CodeIT/layouts/partials/home/profile.html b/themes/CodeIT/layouts/partials/home/profile.html
deleted file mode 100644
index ba2462e..0000000
--- a/themes/CodeIT/layouts/partials/home/profile.html
+++ /dev/null
@@ -1,96 +0,0 @@
-{{- $profile := .Site.Params.home.profile -}}
-<div class="home-profile">
- {{- $avatar := $profile.avatarURL -}}
- {{- with $profile.gravatarEmail -}}
- {{- $avatar = md5 . | printf "https://www.gravatar.com/avatar/%v?s=240&d=mp" -}}
- {{- end -}}
- {{- 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 "Alt" $avatarAlt | partial "plugin/image.html" -}}
- </a>
- {{- else -}}
- {{- dict "Src" $avatar "Alt" $avatarAlt | partial "plugin/image.html" -}}
- {{- end -}}
- </div>
- {{- end -}}
-
- {{- with $profile.title -}}
- <h1 class="home-title">
- {{- . | safeHTML -}}
- </h1>
- {{- end -}}
-
- {{- with $profile.subtitle -}}
- <h2 class="home-subtitle">
- {{- if $profile.typeit -}}
- {{- $id := dict "Content" . "Scratch" $.Scratch | partial "function/id.html" -}}
- <div id="{{ $id }}" class="typeit"></div>
- {{- dict $id (slice $id) | dict "typeitMap" | merge ($.Scratch.Get "this") | $.Scratch.Set "this" -}}
- {{- else -}}
- {{- . | safeHTML -}}
- {{- end -}}
- </h2>
- {{- end -}}
-
- {{- if $profile.social -}}
- <div class="links">
- {{- $socialMap := resources.Get "data/social.yml" | transform.Unmarshal -}}
- {{- $socialArr := slice -}}
- {{- range $key, $value := .Site.Params.social -}}
- {{- $social := $key | lower | index $socialMap | default dict -}}
- {{- if $value -}}
- {{- if reflect.IsMap $value -}}
- {{- with $value.weight -}}
- {{- $social = dict "Weight" . | merge $social -}}
- {{- end -}}
- {{- with $value.prefix -}}
- {{- $social = dict "Prefix" . | merge $social -}}
- {{- end -}}
- {{- with $value.template -}}
- {{- $social = dict "Template" . | merge $social -}}
- {{- end -}}
- {{- with $value.id -}}
- {{- $social = dict "Id" . | merge $social -}}
- {{- end -}}
- {{- with $value.url -}}
- {{- $social = dict "Url" . | merge $social -}}
- {{- end -}}
- {{- with $value.title -}}
- {{- $social = dict "Title" . | merge $social -}}
- {{- end -}}
- {{- with $value.newtab -}}
- {{- $social = dict "Newtab" . | merge $social -}}
- {{- end -}}
- {{- with $value.icon -}}
- {{- $social = dict "Icon" . | merge $social -}}
- {{- end -}}
- {{- else if ne $value true -}}
- {{- $social = dict "Id" $value | merge $social -}}
- {{- end -}}
- {{- if $social.Icon.Simpleicons -}}
- {{- $prefix := ($.Scratch.Get "cdn" | default dict).simpleIconsPrefix -}}
- {{- $social = dict "Prefix" $prefix | dict "Icon" | merge $social -}}
- {{- end -}}
- {{- $socialArr = $socialArr | append $social -}}
- {{- end -}}
- {{- end -}}
- {{- range sort $socialArr "Weight" -}}
- {{- partial "plugin/social.html" . -}}
- {{- end -}}
- </div>
- {{- end -}}
-
- {{- with $profile.disclaimer -}}
- <h3 class="home-disclaimer">
- {{- . | safeHTML -}}
- </h3>
- {{- end -}}
-</div>