Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zhaohuabing/hugo-theme-cleanwhite.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Delia <antoine.delia@gmail.com>2022-03-31 18:11:32 +0300
committerzhaohuabing <zhaohuabing@gmail.com>2022-04-11 10:19:02 +0300
commitc1d2f12a07620b0ab83bf53048a665c73809f3fd (patch)
treeb43cf91258407a49a32d7f09594f928fd1b2d3c5
parent2eeaf187f8e4fde65916e732111711b12669a644 (diff)
Add "on" keyword between author name and date
-rw-r--r--layouts/partials/post_list.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/post_list.html b/layouts/partials/post_list.html
index c8d423b..4f6f305 100644
--- a/layouts/partials/post_list.html
+++ b/layouts/partials/post_list.html
@@ -28,7 +28,7 @@
{{ end }}
{{ end }}
{{ else }}
- Posted by {{ with .Params.author }}{{ . }}{{ else }}{{ .Site.Title }}{{ end }} {{ .Date.Format "Monday, January 2, 2006" }}
+ Posted by {{ with .Params.author }}{{ . }}{{ else }}{{ .Site.Title }}{{ end }} on {{ .Date.Format "Monday, January 2, 2006" }}
<!-- Don't show "Last Modified on" if update happened on the same day. -->
{{ if (and (not .Lastmod.IsZero) (not (eq (dateFormat "2006-01-02" .Lastmod) (dateFormat "2006-01-02" .Date)))) }}
<br>Last Modified on {{ dateFormat "Monday, January 2, 2006" .Params.LastMod }}