diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-06-03 12:51:52 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-06-03 12:52:23 +0200 |
| commit | 6c6b1bd1035ae68a18bd83faf7ff1297ead60e8c (patch) | |
| tree | 0a9b6c3388af549cd7d59b6e680837d31d9dc3b2 /layouts/_default/list.json.json | |
| parent | 1283f3d31243d1ac63ce718c4039ba6b85f5d721 (diff) | |
| download | gohugo-theme-ed-6c6b1bd1035ae68a18bd83faf7ff1297ead60e8c.tar.gz | |
Do not allow modification of date formats that are required by spec
Diffstat (limited to 'layouts/_default/list.json.json')
| -rw-r--r-- | layouts/_default/list.json.json | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/list.json.json b/layouts/_default/list.json.json index b912df0..70ea7a4 100644 --- a/layouts/_default/list.json.json +++ b/layouts/_default/list.json.json @@ -36,8 +36,8 @@ "url": {{ printf "%s?utm_source=json_feed" .Permalink | jsonify }}, "title": {{ .Title | plainify | chomp | jsonify }}, "summary": {{ .Summary | plainify | chomp | jsonify }}, - "date_published": {{ .PublishDate.UTC.Format site.Params.dateFormatFeed | jsonify }}{{ if ne .Date .Lastmod }}, - "date_modified" : {{ .Lastmod.UTC.Format site.Params.dateFormatFeed | jsonify }}{{ end }} + "date_published": {{ .PublishDate.Format "2006-01-02T15:04:05Z07:00" | jsonify }}{{ if ne .Date .Lastmod }}, + "date_modified" : {{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" | jsonify }}{{ end }} } {{- end}} ] |
