{{- if .Params.title -}}
    {{- if not $.Params.cite -}}
        {{- erroridf "missing-cite" "No cite found for citation '%q' (%q)" .Params.title .Page.File.Path -}}
    {{- end -}}
{{- else -}}
    {{- errorf "No title found for citation (%q)" .Page.File.Path -}}
{{- end -}}

{{- $citeID := cond ( .Params.cite | not | not ) .Params.cite .Params.title -}}

{{- /**/ -}}{{- partialCached "cite.html" . $citeID -}}{{- /**/ -}}