From 5023752f5865deaaa413b15ca98266479b7b886e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Sun, 7 Jun 2026 20:05:20 +0200 Subject: [PATCH] fix: correct recipe count to 425, scope site count to recipes section README had 426 (off by one due to _index.md). Homepage and footer now use where .Site.RegularPages "Section" "recipes" to exclude non-recipe pages like /imprint/ from the count. Co-Authored-By: Claude Sonnet 4.6 --- README.md | 4 ++-- layouts/index.html | 2 +- layouts/partials/footer.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 81b0feb..aa7b5e8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Bar Pivoine -A moody, editorial cocktail recipe site. 426 recipes from the open cocktail dataset, served with AI-generated photography, client-side search, and a dark amber aesthetic. +A moody, editorial cocktail recipe site. 425 recipes from the open cocktail dataset, served with AI-generated photography, client-side search, and a dark amber aesthetic. Live at **[bar.pivoine.art](https://bar.pivoine.art)** @@ -40,7 +40,7 @@ bar/ │ ├── recipes/ │ │ ├── _index.md # Archive front matter │ │ └── {slug}/ -│ │ ├── index.md # Cocktail page (426 bundles) +│ │ ├── index.md # Cocktail page (425 bundles) │ │ └── cocktail.webp # AI-generated image (optional) │ ├── layouts/ diff --git a/layouts/index.html b/layouts/index.html index 02ef608..e50d380 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,5 +1,5 @@ {{ define "main" }} - {{- $pages := .Site.RegularPages -}} + {{- $pages := where .Site.RegularPages "Section" "recipes" -}} {{- $featured := first 8 (shuffle $pages) -}} {{- $hero := index (shuffle $pages) 0 -}} {{- $cats := .Site.Taxonomies.categories.ByCount -}} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 9fd8492..a5ee0a3 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -10,7 +10,7 @@ Bar Pivoine
- {{- $count := len .Site.RegularPages -}} + {{- $count := len (where .Site.RegularPages "Section" "recipes") -}}

A field guide to the good pour. {{ $count }} cocktail recipes, low light, honest measures, no garnish left behind.

Recipes from the open cocktail dataset · imagery via FLUX.2 pro