{{- define "partials/author-list.html" -}} {{- $authors := . -}} {{- if and (ne $authors nil) (gt (len $authors) 0) -}} {{- end -}} {{- end -}} {{- $showCover := ne (.Get 1) false -}} {{- $book := partial "openlibrary.obj" (dict "path" .Page.Path "id" (.Get 0)) -}} {{- with $book -}} {{- if and $showCover .cover -}}
{{- partial "partials/author-list.html" .authors -}}
{{- else -}} {{ .title }} {{- partial "partials/author-list.html" .authors -}} {{- end -}} {{- end -}}