Erster Entwurf
This commit is contained in:
commit
b5d27b3fc9
66 changed files with 11671 additions and 0 deletions
22
themes/mainroad/layouts/partials/authorbox.html
Normal file
22
themes/mainroad/layouts/partials/authorbox.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
{{- if .Param "authorbox" }}
|
||||
<div class="authorbox clearfix">
|
||||
{{- if and (not .Site.Author.avatar) (not .Site.Author.name) (not .Site.Author.bio) }}
|
||||
<p class="authorbox__warning"><strong>WARNING:</strong> Authorbox is activated, but [Author] parameters are not specified.</p>
|
||||
{{- end }}
|
||||
{{- with .Site.Author.avatar }}
|
||||
<figure class="authorbox__avatar">
|
||||
<img alt="{{ $.Site.Author.name }} avatar" src="{{ $.Site.Author.avatar | relURL }}" class="avatar" height="90" width="90">
|
||||
</figure>
|
||||
{{- end }}
|
||||
{{- with .Site.Author.name }}
|
||||
<div class="authorbox__header">
|
||||
<span class="authorbox__name">{{ T "authorbox_name" . }}</span>
|
||||
</div>
|
||||
{{- end }}
|
||||
{{- with .Site.Author.bio }}
|
||||
<div class="authorbox__description">
|
||||
{{ . }}
|
||||
</div>
|
||||
{{- end }}
|
||||
</div>
|
||||
{{- end }}
|
Loading…
Add table
Add a link
Reference in a new issue