diff --git a/assets/css/_page/_home.scss b/assets/css/_page/_home.scss index 742b4a6..fe7a9d7 100644 --- a/assets/css/_page/_home.scss +++ b/assets/css/_page/_home.scss @@ -17,6 +17,9 @@ @include border-radius(100%); @include box-shadow(0 0 0 .3618em rgba(0, 0, 0, .05)); @include transition(all 0.4s ease); + } + + a img { cursor: pointer; &:hover { diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 09a920a..7a3bfe6 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -38,7 +38,9 @@ {{- .Pre | safeHTML }} {{ .Name }} {{ .Post | safeHTML -}} {{- end -}} - + {{- if .Site.Menus.main -}} + + {{- end -}} {{- if .Site.IsMultiLingual -}} {{- .Language.LanguageName -}} diff --git a/layouts/partials/home/profile.html b/layouts/partials/home/profile.html index 18ce94d..717420a 100644 --- a/layouts/partials/home/profile.html +++ b/layouts/partials/home/profile.html @@ -3,11 +3,21 @@ {{- with .Site.Params.home.profile.gravatarEmail -}} {{- $avatar = md5 . | printf "https://www.gravatar.com/avatar/%s?s=240&d=mp" -}} {{- end -}} - {{- with $avatar -}} + {{- if $avatar -}}
- - {{- dict "src" . "alt" (T "home") | partial "plugin/image.html" -}} - + {{- $firstMenu := "" -}} + {{- if .Site.Menus.main -}} + {{- range first 1 $.Site.Menus.main -}} + {{- $firstMenu = . -}} + {{- end -}} + {{- end -}} + {{- with $firstMenu -}} + + {{- dict "src" $avatar "alt" .Name | partial "plugin/image.html" -}} + + {{- else -}} + {{- dict "src" $avatar "alt" " " | partial "plugin/image.html" -}} + {{- end -}}
{{- end -}}