mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
refactor
This commit is contained in:
parent
fd143fede2
commit
097eb6baf2
@ -9,10 +9,10 @@
|
|||||||
{{ if .Params.hideMeta }}{{ else }}
|
{{ if .Params.hideMeta }}{{ else }}
|
||||||
<div class="post-meta">
|
<div class="post-meta">
|
||||||
<time>{{ .Date.Format "January 2, 2006" }}</time>
|
<time>{{ .Date.Format "January 2, 2006" }}</time>
|
||||||
{{ if or .Params.author .Site.Params.author }} . {{ .Params.author | default .Site.Params.author }}{{ end }}
|
|
||||||
{{ if $.Site.Params.ShowReadingTime }} .
|
{{ if $.Site.Params.ShowReadingTime }} .
|
||||||
{{ $default_txt := print .ReadingTime " " "min" }}
|
{{ $default_txt := print .ReadingTime " " "min" }}
|
||||||
{{ i18n "read_time" .ReadingTime | default $default_txt }}{{ end }}
|
{{ i18n "read_time" .ReadingTime | default $default_txt }}{{ end }}
|
||||||
|
{{ if or .Params.author .Site.Params.author }} . {{ .Params.author | default .Site.Params.author }}{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
</header>
|
</header>
|
||||||
|
Loading…
Reference in New Issue
Block a user