{{- /*
The component where it will display the metadata of the post.
This is used on list templates but feel free to change that.
*/ -}}
{{- if ne (.PublishDate.Format "2006") "0001" -}}
{{- end }}
{{- if and .GitInfo (ne (.PublishDate.Format "2006-01-02") (.Lastmod.Format "2006-01-02")) }}
{{- 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 }}