aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default/search.json
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/search.json')
-rw-r--r--layouts/_default/search.json4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/search.json b/layouts/_default/search.json
index 16912cb..9fae26d 100644
--- a/layouts/_default/search.json
+++ b/layouts/_default/search.json
@@ -1,5 +1,5 @@
-{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
+{{ $dateFormat := .Site.Params.dateFormat | default ":date_medium" }}
{{- $.Scratch.Add "index" slice -}}
{{- range (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) -}}
@@ -7,7 +7,7 @@
"tags" .Params.tags
"categories" .Params.categories
"contents" (.Summary | plainify)
- "date" (.Date.Format $dateFormat)
+ "date" (time.Format $dateFormat .Date)
"permalink" .Permalink) -}}
{{- end -}}
{{- $.Scratch.Get "index" | jsonify -}}