Skip to content

Commit

Permalink
Fix dates
Browse files Browse the repository at this point in the history
  • Loading branch information
kalucky0 committed Aug 19, 2024
1 parent f984eb3 commit 48b932d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions themes/PaperMod/layouts/partials/post_meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

{{- if not .Date.IsZero -}}
{{- if or .Lastmod.IsZero (eq .Date.UTC .Lastmod.UTC) -}}
{{- $scratch.Add "meta" (slice (printf "<span title='Created: %s'>%s</span>" (dateFormat "Mon, 02 Jan 2006 15:04:05" .Date.UTC) (.Date | time.Format "January 2, 2006"))) }}
{{- $scratch.Add "meta" (slice (printf "<span title='Created: %s'>%s</span>" (.Date.UTC | time.Format "Mon, 02 Jan 2006 15:04:05") (.Date | time.Format "January 2, 2006"))) }}
{{- else -}}
{{- $scratch.Add "meta" (slice (printf "<span title='Created: %s,&#013;Updated: %s'>%s</span>" (dateFormat "Mon, 02 Jan 2006 15:04:05" .Date.UTC) (dateFormat "Mon, 02 Jan 2006 15:04:05" .Lastmod.UTC) (.Date | time.Format "January 2, 2006"))) }}
{{- $scratch.Add "meta" (slice (printf "<span title='Created: %s,&#013;Updated: %s'>%s</span>" (.Date.UTC | time.Format "Mon, 02 Jan 2006 15:04:05") (.Lastmod.UTC | time.Format "Mon, 02 Jan 2006 15:04:05") (.Date | time.Format "January 2, 2006"))) }}
{{- end -}}
{{- end }}

Expand Down

0 comments on commit 48b932d

Please sign in to comment.