{{ define "main" }} {{- $taxType := .Type -}} {{- $taxIcon := "❖" -}} {{- if eq $taxType "glasses" -}}{{- $taxIcon = "▽" -}} {{- else if eq $taxType "ingredients" -}}{{- $taxIcon = "✦" -}} {{- else if eq $taxType "categories" -}}{{- $taxIcon = "❖" -}} {{- end -}} {{- $cnt := len .Pages -}} {{- $siblings := slice -}} {{- $allTerms := index .Site.Taxonomies $taxType -}} {{- if $allTerms -}} {{- range $allTerms.ByCount -}} {{- if ne .Page.Title $.Title -}} {{- $siblings = $siblings | append . -}} {{- end -}} {{- end -}} {{- end -}}
{{ $taxIcon }}

{{ .Title }}

{{ $cnt }} {{ if eq $cnt 1 }}recipe{{ else }}recipes{{ end }}

{{- if .Paginator.Pages -}}
{{- range .Paginator.Pages -}} {{- partial "cocktail-card.html" . -}} {{- end -}}
{{- if gt .Paginator.TotalPages 1 -}} {{- end -}} {{- else -}}

No recipes found.

{{- end -}} {{- if gt (len $siblings) 0 -}}

More {{ .Type }}

{{- range first 12 $siblings -}} {{ .Page.Title }} {{ .Count }} {{- end -}}
{{- end -}}
{{ end }}