diff --git a/assets/css/style.scss b/assets/css/style.scss index f933bf6..1249067 100644 --- a/assets/css/style.scss +++ b/assets/css/style.scss @@ -592,11 +592,23 @@ select { /* Authorbox */ .authorbox { @include subarticle-element; + @extend .clearfix; line-height: 1.5; display: block; @media screen and (max-width: $break1) { text-align: center; } + .author-avatar { + float: left; + margin: 0 25px 0 0; + height: 90px; + width: 90px; + @media screen and (max-width: $break1) { + display: inline-block; + float: none; + margin: 0 0 20px; + } + } .author-header { margin-bottom: 10px; } diff --git a/layouts/partials/authorbox.html b/layouts/partials/authorbox.html index 5f1f895..e23134b 100644 --- a/layouts/partials/authorbox.html +++ b/layouts/partials/authorbox.html @@ -1,16 +1,21 @@ {{- if .Param "authorbox" }} {{- with .Site.Author }}
- {{- if .name }} + {{ if .avatar }} +
+ {{ .name }} +
+ {{ end }} + {{ if .name }}
{{ T "authorbox_name" }} {{ if .link }}{{ .name }}{{ else }}{{ .name }}{{ end }}
- {{- end }} - {{- with .bio }} + {{ end }} + {{ with .bio }}
{{ . }}
- {{- end }} + {{ end }}
{{- end }} {{- end }} \ No newline at end of file