{{ if .Site.Data.bibliography }}
{{ $id := .Get "id" }} {{ range where .Site.Data.bibliography "id" $id }} {{ $len := (len .author) }} {{ range $index, $element := .author }} {{ $element.family }}, {{ $element.given}} {{ if ne (add $index 1) $len }}and{{ end }} {{ end }} ({{ range .issued }} {{ range . }} {{ range . }} {{.}} {{ end }} {{ end }} {{ end }}): {{ .title }}. {{ if isset . "container-title" }}{{ index . "container-title" }}{{ end }} {{ if isset . "issue" }}{{ .issue }},{{ end }} {{ if isset . "volume" }}vol. {{ .volume }},{{ end }} {{ if isset . "page" }}p. {{ .page }},{{ end }} {{ if isset . "DOI" }}DOI: {{ .DOI }},{{ end }} {{ if isset . "ISBN" }}ISBN: {{ .ISBN }},{{ end }} {{ .publisher }} {{ end }}
{{ else }} {{ printf "Warning: Bibliography not converted! Missing bib id: "}}{{.Get "id"}}
{{ end }}