{{ $dateTime := .PublishDate.Format "2006-01-02" }} {{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}

By {{ with .Params.author }} — {{ delimit . ", " }} {{ end }}
{{ with .Params.location }} — {{ . }} {{ end }} {{ if eq .Section "post" }} | {{ .ReadingTime }} mins read {{ end }} {{ with .Params.tags }} | {{ range . }} {{ $href := print (absURL "tags/") (urlize .) }} {{ . }} {{ end }} {{ end }} {{ with .Params.categories }} | {{ range . }} {{ $href := print (absURL "categories/") (urlize .) }} {{ . }} {{ end }} {{ end }}
{{ range $key, $val := (dict "DOI" .Params.doi "PDF" .Params.url_pdf "Slides" .Params.url_slides "Video" .Params.url_video "Code" .Params.url_code ) }} {{ with $val }} {{ $key }} {{ end }} {{ end }}