{{ define "main" }} {{- $pages := .Site.RegularPages -}} {{- $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.

{{- $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 -}} {{ $hero.Title }} {{- end -}}
{{ $hero.Title }}
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 -}}
{{- range $featured -}} {{- partial "cocktail-card.html" . -}} {{- end -}}
{{ end }}