File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ {{- if .Param "authorbox" }}
2+ < div class ="authorbox clearfix ">
3+ {{- if and (not .Site.Params.Author.avatar) (not .Site.Params.Author.name) (not .Site.Params.Author.bio) }}
4+ < p class ="authorbox__warning ">
5+ < strong > WARNING:</ strong > Authorbox is activated, but [Author] parameters are not specified.
6+ </ p >
7+ {{- end }}
8+ {{- with .Site.Params.Author.avatar }}
9+ < figure class ="authorbox__avatar ">
10+ < img alt ="{{ $.Site.Params.Author.name }} avatar " src ="{{ $.Site.Params.Author.avatar | relURL }} " class ="avatar " height ="90 " width ="90 ">
11+ </ figure >
12+ {{- end }}
13+ {{- with .Site.Params.Author.name }}
14+ < div class ="authorbox__header ">
15+ < span class ="authorbox__name "> {{ T "authorbox_name" (dict "Name" .) }}</ span >
16+ </ div >
17+ {{- end }}
18+ {{- with .Site.Params.Author.bio }}
19+ < div class ="authorbox__description ">
20+ {{ . | markdownify }}
21+ </ div >
22+ {{- end }}
23+ </ div >
24+ {{- end }}
Original file line number Diff line number Diff line change 1+ {{- if .Site.Params.Author.name -}}
2+ < div class ="meta__item-author meta__item ">
3+ {{ partial "svg/author.svg" (dict "class" "meta__icon") -}}
4+ < span class ="meta__text "> {{ .Site.Params.Author.name }}</ span >
5+ </ div >
6+ {{- end -}}
You can’t perform that action at this time.
0 commit comments