{{- /* remove whitespace */ -}} {{- with .Get "href" -}} {{- $destination := partial "docs/links/portable-link" (dict "Page" $.Page "Destination" .) -}} {{- template "book-card-content" $ -}} {{- else -}}
{{- template "book-card-content" $ -}}
{{- end -}} {{- define "book-card-content" -}} {{- with .Get "image" -}} {{- $destination := partial "docs/links/portable-image" (dict "Page" $.Page "Destination" .) -}} {{- end }}
{{ with .InnerDeindent }}{{ . }}{{ end }}
{{- end -}} {{- /* remove whitespace */ -}}