-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change needs to be reverted once it is fixed in Mainroad (theme) See Vimux/Mainroad#379
- Loading branch information
1 parent
f0101b3
commit 6af4408
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{{- if .Param "authorbox" }} | ||
<div class="authorbox clearfix"> | ||
{{- if and (not .Site.Params.Author.avatar) (not .Site.Params.Author.name) (not .Site.Params.Author.bio) }} | ||
<p class="authorbox__warning"> | ||
<strong>WARNING:</strong> Authorbox is activated, but [Author] parameters are not specified. | ||
</p> | ||
{{- end }} | ||
{{- with .Site.Params.Author.avatar }} | ||
<figure class="authorbox__avatar"> | ||
<img alt="{{ $.Site.Params.Author.name }} avatar" src="{{ $.Site.Params.Author.avatar | relURL }}" class="avatar" height="90" width="90"> | ||
</figure> | ||
{{- end }} | ||
{{- with .Site.Params.Author.name }} | ||
<div class="authorbox__header"> | ||
<span class="authorbox__name">{{ T "authorbox_name" (dict "Name" .) }}</span> | ||
</div> | ||
{{- end }} | ||
{{- with .Site.Params.Author.bio }} | ||
<div class="authorbox__description"> | ||
{{ . | markdownify }} | ||
</div> | ||
{{- end }} | ||
</div> | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{{- if .Site.Params.Author.name -}} | ||
<div class="meta__item-author meta__item"> | ||
{{ partial "svg/author.svg" (dict "class" "meta__icon") -}} | ||
<span class="meta__text">{{ .Site.Params.Author.name }}</span> | ||
</div> | ||
{{- end -}} |