File tree 3 files changed +6
-5
lines changed
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ disqusShortname = "yourdiscussshortname"
45
45
subtitle = " A Hugo theme" # Subtitle
46
46
cdn_url = " " # Base CDN URL
47
47
home_mode = " " # post or other
48
-
48
+ dateFormatToUse = " " # set date format, default "2 January 2006"
49
+
49
50
google_verification = " "
50
51
bing_verification = " "
51
52
yandex_verification = " "
Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ <h3>{{ .Key }}</h3>
9
9
< article class ="archive-item ">
10
10
< a href ="{{ .RelPermalink }} " class ="archive-item-link "> {{ .Title }}</ a >
11
11
< span class ="archive-item-date ">
12
- {{ .Date.Format "2 January 2006" }}
12
+ {{ .Date.Format (.Site.Params.dateFormatToUse | default "2 January 2006") }}
13
13
</ span >
14
14
</ article >
15
15
{{ end }} {{ end }}
16
16
{{ partial "paginator.html" . }}
17
17
</ div >
18
- {{end }}
18
+ {{end }}
Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ <h3>{{ .Key }}</h3>
9
9
< article class ="archive-item ">
10
10
< a href ="{{ .RelPermalink }} " class ="archive-item-link "> {{ .Title }}</ a >
11
11
< span class ="archive-item-date ">
12
- {{ .Date.Format "2 January 2006" }}
12
+ {{ .Date.Format (.Site.Params.dateFormatToUse | default "2 January 2006") }}
13
13
</ span >
14
14
</ article >
15
15
{{ end }} {{ end }}
16
16
{{ partial "paginator.html" . }}
17
17
</ div >
18
- {{end }}
18
+ {{end }}
You can’t perform that action at this time.
0 commit comments