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:07:24 +0300
committerzhaohuabing <zhaohuabing@gmail.com>2022-04-11 10:19:02 +0300
commit2eeaf187f8e4fde65916e732111711b12669a644 (patch)
treeecc5331d1af3f096250ae419413422cf25e2be14
parent7b64a06446db7aa1620e99186302a5ebe3f976cf (diff)
Add missing whitespace after "Posted by" on the post list
The `post_list.html` is missing a whitespace between the "Posted by" and the author's name. This whitespace is however present in the `single.html` page. https://github.com/zhaohuabing/hugo-theme-cleanwhite/blob/7b64a06446db7aa1620e99186302a5ebe3f976cf/layouts/_default/single.html#L36 I'm proposing this change to make the layout consistent.
-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 c20dd38..c8d423b 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 }} {{ .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 }}