mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-09 14:59:45 +00:00
Add author field to blog (#322)
* Add author field * Check if author exists
This commit is contained in:
parent
fade059bf5
commit
c88d3a359d
1 changed files with 5 additions and 0 deletions
|
@ -9,6 +9,11 @@
|
||||||
<h2 class="title is-1 top-pad strong-post-title">
|
<h2 class="title is-1 top-pad strong-post-title">
|
||||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||||
</h2>
|
</h2>
|
||||||
|
{{ if .Params.author }}
|
||||||
|
<h4 class="title is-4">
|
||||||
|
By {{ .Params.author | markdownify }}
|
||||||
|
</h4>
|
||||||
|
{{ end }}
|
||||||
<div class="post-data">
|
<div class="post-data">
|
||||||
{{ if .Params.date }}{{ .Date.Format (.Site.Params.dateFormat | default ":date_medium") }}{{ end }}
|
{{ if .Params.date }}{{ .Date.Format (.Site.Params.dateFormat | default ":date_medium") }}{{ end }}
|
||||||
{{ if .Site.Params.showReadingTime | default true }}
|
{{ if .Site.Params.showReadingTime | default true }}
|
||||||
|
|
Loading…
Reference in a new issue