- {{- partial "plugin/fontawesome.html" (dict "Style" "solid" "Icon" "tags") -}}
+ {{- partial "plugin/fontawesome.html" (dict "Style" "solid" "Icon" "tags") -}}
{{- range $index, $value := . -}}
{{- if gt $index 0 }}, {{ end -}}
{{- $tag := partialCached "function/path.html" $value $value | printf "/tags/%v" | $.Site.GetPage -}}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index ca2fa1438..6d161785b 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -20,7 +20,8 @@
{{- $post_info = $post_info | append $e -}}
{{- end -}}
{{- if ne .Site.Params.footer.hugo false -}}
- {{- $theme := .Scratch.Get "version" | printf `
DoIt` -}}
+ {{- $icon := partial "plugin/fontawesome.html" (dict "Style" "regular" "Icon" "edit") -}}
+ {{- $theme := printf `
%v DoIt` (.Scratch.Get "version") $icon -}}
{{- $e := dict "Theme" $theme | T "theme" -}}
{{- $post_info = $post_info | append $e -}}
{{- end -}}
@@ -32,7 +33,7 @@
+
\ No newline at end of file
diff --git a/layouts/partials/home/profile.html b/layouts/partials/home/profile.html
index 2342c4f9f..ecd0f6c64 100644
--- a/layouts/partials/home/profile.html
+++ b/layouts/partials/home/profile.html
@@ -2,97 +2,98 @@
{{- $avatar := $profile.avatarURL -}}
{{- with $profile.gravatarEmail -}}
- {{- $avatar = md5 . | printf "https://www.gravatar.com/avatar/%v?s=240&d=mp" -}}
+ {{- $avatar = md5 . | printf "https://www.gravatar.com/avatar/%v?s=240&d=mp" -}}
{{- end -}}
{{- if $avatar -}}
-
+
{{- end -}}
{{- with $profile.title -}}
-
- {{- . | safeHTML -}}
-
+
+ {{- . | 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 -}}
-
+
+ {{- 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 -}}
-
- {{- $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 -}}
-
+
+ {{- $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 -}}
+
{{- end -}}
{{- with $profile.disclaimer -}}
-
- {{- . | safeHTML -}}
-
+
+ {{- . | safeHTML -}}
+
{{- end -}}
-
+
\ No newline at end of file
diff --git a/layouts/partials/meta/author.html b/layouts/partials/meta/author.html
index e023e8ad9..15952e79c 100644
--- a/layouts/partials/meta/author.html
+++ b/layouts/partials/meta/author.html
@@ -1,4 +1,3 @@
-{{- $icon := dict "Class" "author fas fa-user-circle fa-fw" }}
{{- if .Params.authors -}}
{{- $lang := ( $.Params.lang | default $.Lang ) -}}