diff --git a/layouts/partials/archive.html b/layouts/partials/archive.html index 4907815..c863448 100644 --- a/layouts/partials/archive.html +++ b/layouts/partials/archive.html @@ -37,7 +37,7 @@ {{ .Title | markdownify }} - ["{{- $postDate }}"{{- if ne $postDate $updateDate }}, "{{ $updateDate }}"{{ end }}] + ["{{ with $updateDate }}{{ . }}{{ else }}{{ .Date }}{{ end }}"] @@ -57,7 +57,7 @@ {{ .Title | markdownify }} - ["{{- $postDate }}"{{- if ne $postDate $updateDate }}, "{{ $updateDate }}"{{ end }}] + ["{{ with $updateDate }}{{ . }}{{ else }}{{ $postDate }}{{ end }}"]
- ["{{- $postDate }}"{{- if ne $postDate $updateDate }}, "{{ $updateDate }}"{{ end }}] + ["{{ with $updateDate }}{{ . }}{{ else }}{{ .Date }}{{ end }}"]
- ["{{- $postDate }}"{{- if ne $postDate $updateDate }}, "{{ $updateDate }}"{{ end }}] + ["{{ with $updateDate }}{{ . }}{{ else }}{{ $postDate }}{{ end }}"]