{{ define "main" }} {{- $pages := where .Site.RegularPages "Section" "recipes" -}} {{- $featured := first 8 (shuffle $pages) -}} {{- $hero := index (shuffle $pages) 0 -}} {{- $cats := .Site.Taxonomies.categories.ByCount -}} {{- $glasses := .Site.Taxonomies.glasses.ByCount -}} {{- $ings := .Site.Taxonomies.ingredients.ByCount -}} {{/* Spirit type counts (alcoholic isn't a Hugo taxonomy) */}} {{- $nAlcoholic := 0 -}} {{- $nNonAlc := 0 -}} {{- $nOptional := 0 -}} {{- range $pages -}} {{- if eq .Params.alcoholic "Alcoholic" -}}{{- $nAlcoholic = add $nAlcoholic 1 -}} {{- else if eq .Params.alcoholic "Non alcoholic" -}}{{- $nNonAlc = add $nNonAlc 1 -}} {{- else -}}{{- $nOptional = add $nOptional 1 -}} {{- end -}} {{- end -}} Bar Pivoine — A Field Guide to the Good Pour The quiet art of the evening cocktail. A curated cellar of {{ len $pages }} recipes — every measure, every method, photographed in low amber light. Search by spirit, glass, or whatever sits in your cabinet tonight. Browse the cellar {{- partial "icon.html" "arrow-right" -}} Tonight's pour {{- $heroImg := $hero.Resources.GetMatch "cocktail.*" -}} {{- if $heroImg -}} {{- partial "img.html" (dict "res" $heroImg "widths" (slice 800 1200) "sizes" "(max-width: 900px) 100vw, 50vw" "class" "w-full h-full object-cover" "alt" $hero.Title "loading" "eager" ) -}} {{- else -}} {{- end -}} {{ $hero.Title }} Find your way in Explore the index All recipes {{- partial "icon.html" "arrow-right" -}} ◑ Spirit Styles 3 Alcoholic {{ $nAlcoholic }} Non alcoholic {{ $nNonAlc }} Optional alcohol {{ $nOptional }} ❖ Categories {{ len $cats }} {{- range $cats -}} {{ .Page.Title }} {{ .Count }} {{- end -}} ▽ Glassware {{ len $glasses }} {{- range $glasses -}} {{ .Page.Title }} {{ .Count }} {{- end -}} ✦ Ingredients {{ len $ings }} {{- range $ings -}} {{ .Page.Title }} {{ .Count }} {{- end -}} The cabinet Selected pours See all {{- partial "icon.html" "arrow-right" -}} {{- range $featured -}} {{- partial "cocktail-card.html" . -}} {{- end -}} {{ end }}
A curated cellar of {{ len $pages }} recipes — every measure, every method, photographed in low amber light. Search by spirit, glass, or whatever sits in your cabinet tonight.