{{- /*
The component where it will display the metadata of the post.
*/ -}}
{{- if or .PublishDate .Lastmod }}
{{- $RFC3339 := "2006-01-02T15:04:05Z07:00" }}
{{- if .PublishDate -}}
{{ partial "components/heroicon.html" "calendar" }}
{{- end }}
{{- if ne (.PublishDate.Format "2006-01-02") (.Lastmod.Format "2006-01-02") }}
{{ partial "components/heroicon.html" "arrow-path" }}
{{- end }}
{{- /* The authors are appended with 'et al' if there's more than one author in the map. */ -}}
{{- with .Params.author }}
{{- $names := slice }}
{{- range . }}{{ $names = $names | append .name }}{{ end }}
{{- $author := index (first 1 $names) 0 }}
{{ partial "components/heroicon.html" "pencil" }}
{{ $author }}{{ if ge (len .) 2 }}, et al.{{ end }}
{{- end }}