Add back author avatar
This commit is contained in:
parent
43acb7f604
commit
6e7b9bd081
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -1,16 +1,21 @@
|
|||
{{- if .Param "authorbox" }}
|
||||
{{- with .Site.Author }}
|
||||
<div class="authorbox p-author h-card">
|
||||
{{- if .name }}
|
||||
{{ if .avatar }}
|
||||
<figure class="author-avatar">
|
||||
<img class="u-photo" alt="{{ .name }}" src="{{ .avatar | relURL }}">
|
||||
</figure>
|
||||
{{ end }}
|
||||
{{ if .name }}
|
||||
<div class="author-header">
|
||||
<span class="author-name">{{ T "authorbox_name" }} {{ if .link }}<a href="{{ .link }}" class="p-name u-url" rel="me">{{ .name }}</a>{{ else }}<span class="p-name">{{ .name }}</span>{{ end }}</span>
|
||||
</div>
|
||||
{{- end }}
|
||||
{{- with .bio }}
|
||||
{{ end }}
|
||||
{{ with .bio }}
|
||||
<div class="p-note">
|
||||
{{ . }}
|
||||
</div>
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{- end }}
|
||||
{{- end }}
|
Reference in New Issue