diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-07-26 19:17:04 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-07-26 19:17:04 +0530 |
| commit | fff89a4e30b5cdc372e4e64c41597dd494028d53 (patch) | |
| tree | 2d520ab7beb37afc68298e158836db4b6f3fd619 /layouts | |
| parent | ea129c608d33ddaf8451304ad7376caf11ee03f8 (diff) | |
list, index : show post authors
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_default/index.html | 1 | ||||
| -rw-r--r-- | layouts/_default/list.html | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/layouts/_default/index.html b/layouts/_default/index.html index 94ab8ff..6cbf1b8 100644 --- a/layouts/_default/index.html +++ b/layouts/_default/index.html @@ -34,6 +34,7 @@ <time>{{ .Date.Format "January 2, 2006" }}</time> {{ if $.Site.Params.ShowReadingTime }} . {{ .ReadingTime }}{{ $.Site.Params.MinuteReadingTime | default "min read" }}{{ end }} + {{ if or .Params.author .Site.Params.author }} . {{ .Params.author | default .Site.Params.author }}{{ end }} </footer> <a class="entry-link" href="{{ .Permalink }}"></a> </article> diff --git a/layouts/_default/list.html b/layouts/_default/list.html index bf67f37..6a3ca91 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -29,6 +29,7 @@ <time>{{ .Date.Format "January 2, 2006" }}</time> {{ if $.Site.Params.ShowReadingTime }} . {{ .ReadingTime }}{{ $.Site.Params.MinuteReadingTime | default "min read" }}{{ end }} + {{ if or .Params.author .Site.Params.author }} . {{ .Params.author | default .Site.Params.author }}{{ end }} </footer> <a class="entry-link" href="{{ .Permalink }}"></a> </article> |
