{{- "" | safeHTML }} {{- $dateMachine := "2006-01-02T15:04:05-07:00" }} {{- $minVersion := index ( split hugo.Version "." ) 1 }} {{- $datePublished := cond (lt $minVersion 87) (.PublishDate.Format ( i18n "date_long" )) (.PublishDate | time.Format ":date_long") }} {{- $dateModified := cond (lt $minVersion 87) (.Lastmod.Format ( i18n "date_long" )) (.Lastmod | time.Format ":date_long") }} {{- $dateOnly := "2006-01-02" }} {{- $hasMod := ne (.PublishDate.Format $dateOnly) (.Lastmod.Format $dateOnly) }} {{- if or .Params.History $hasMod }} {{- $author := .Params.author | default site.Params.Author.Name }}
{{ i18n "redactionHistory" }}
    {{- if .Params.History }} {{- range sort .Params.History "date" "asc" }}
  1. {{- $writtenAuthor := .author | default $author }} {{- with $writtenAuthor }}
    {{ . }}
    {{- end }} {{- with .editor }}
    {{ . }}
    {{- end }} {{- with .reviewer }}
    {{ . }}
    {{- end }} {{- with .note }}
    {{ . }}
    {{- end }}
  2. {{- end }} {{- else }}
  3. {{ printf "(%s)" (i18n "published") }}
  4. {{ printf "(%s)" (i18n "modified") }}
  5. {{- end }}

{{ i18n "redactionNotes" }}

{{- end }}