Merge pull request #268 from lzhoucs/hide-author
Add option `showAuthor` to hide author
This commit is contained in:
commit
3f32f6fde6
1 changed files with 6 additions and 4 deletions
|
@ -11,10 +11,12 @@
|
||||||
{{ if .Site.Params.wordCount }}
|
{{ if .Site.Params.wordCount }}
|
||||||
| <i class="fas fa-book"></i> {{ .WordCount }} {{ i18n "words" }}
|
| <i class="fas fa-book"></i> {{ .WordCount }} {{ i18n "words" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .Params.author }}
|
{{ if .Site.Params.showAuthor }}
|
||||||
| <i class="fas fa-user"></i> {{ .Params.author | safeHTML }}
|
{{ if .Params.author }}
|
||||||
{{ else }}
|
| <i class="fas fa-user"></i> {{ .Params.author | safeHTML }}
|
||||||
| <i class="fas fa-user"></i> {{ .Site.Author.name | safeHTML }}
|
{{ else }}
|
||||||
|
| <i class="fas fa-user"></i> {{ .Site.Author.name | safeHTML }}
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{- if .Site.Params.staticman -}}
|
{{- if .Site.Params.staticman -}}
|
||||||
| <i class="fas fa-comment"></i>
|
| <i class="fas fa-comment"></i>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue