{{ $page := . }}
{{ with (.GetTerms "authors") }} {{ $length := len . -}} {{ range $index, $element := . }} {{ $href := $element.RelPermalink }} {{ $element.Title }}{{ if lt $index (sub $length 1) }}, {{ end }} {{ end }} {{ end }} {{ $date := printf "%s" (partial "date" $page) }} {{ if $date -}} {{- if (.GetTerms "authors") }} · {{ end -}} {{ $date -}} {{- end }}
{{ $isFirst := true}} {{ if .Params.Pdf }} {{ if $isFirst }}{{ $isFirst = false }}{{else}} · {{ end }} PDF {{ end }} {{ if .Params.Doi }} {{ if or (not .Params.Arxiv) (not (strings.HasSuffix .Params.Doi .Params.Arxiv)) }} {{ if $isFirst }}{{ $isFirst = false }}{{else}} · {{ end }} DOI: {{ .Params.Doi }} {{ end}} {{ end }} {{ if .Params.Arxiv }} {{ if $isFirst }}{{ $isFirst = false }}{{else}} · {{ end }} arXiv:{{ .Params.Arxiv }} {{ end }} {{ if .Params.GitHub }} {{ if $isFirst }}{{ $isFirst = false }}{{else}} · {{ end }} github.com/{{ .Params.GitHub }} {{ end }} {{ if .Params.youtube }} {{ if $isFirst }}{{ $isFirst = false }}{{else}} · {{ end }} YouTube {{ end }} {{ if .Params.WebUrl }} {{ if $isFirst }}{{ $isFirst = false }}{{else}} · {{ end }} {{ .Params.WebUrl }} {{ end }} {{ if .Params.GoodReads }} {{ if $isFirst }}{{ $isFirst = false }}{{else}} · {{ end }} GoodReads {{ end }} {{ if .Params.Links }} {{ range .Params.Links }} {{ if $isFirst }}{{ $isFirst = false }}{{else}} · {{ end }} {{ .title }} {{ end }} {{ end }}
{{ if .Params.source }} {{ $sourcePage := .Site.GetPage .Params.source }}
from {{- $sourceSection := .Site.GetPage $sourcePage.Section -}} {{- if $sourceSection -}}{{- with $sourceSection.Params.Icon -}}{{- partial "icon" . -}}{{- end -}}{{- end -}} {{- $sourcePage.Title -}}
{{ else if .Params.sourceTitle }}
from {{ .Params.sourceTitle }}
{{ end }}
{{ with (.GetTerms "tags") }} {{ $isAnnouncement := newScratch }} {{ $isAnnouncement.Set "value" "false" }} {{ range . }} {{ if eq .Params.type "announcement" }} {{ $isAnnouncement.Set "value" "true" }} {{ end }} {{ end }} {{ if ne ($isAnnouncement.Get "value") "true" }} {{ range . }} {{ if eq .Params.type "research" }}
{{ .Params.message | markdownify }}
{{ end }} {{ end }} {{ end }} {{ end }}