{{- if ( not ( isset .Params "title" ) ) -}} {{- errorf "No title found for citation (%q)" .Page.File.Path -}} {{- end -}} {{- if ( not ( isset $.Params "cite" ) ) -}} {{- erroridf "missing-cite" "No cite found for citation '%q' (%q)" .Params.title .Page.File.Path -}} {{- end -}} {{- $citationId := cond ( .Params.cite | not | not ) .Params.cite .Params.title -}} {{- /**/ -}}{{- partialCached "cite.html.tmpl" . $citationId -}}{{- /**/ -}}