A small workaround by using seperate “history” with dates in markdown files. As per previous solved question @ Get First Date From History Param
Example Markdown File:
history:
- "2022-03-10"
- "2022-02-05"
- "2022-01-01"
{{ with .Params.history }}
{{/* Get first date in the history list. */}}
Updated: {{ range first 1 . }} {{ . }} {{ end }}
{{/* Get last date in the history list. */}}
Created: {{ range last 1 . }} {{ . }} {{ end }}
{{ end }}
If some one has a better solution I’m all ears