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 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# Bar Pivoine
|
# 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)**
|
Live at **[bar.pivoine.art](https://bar.pivoine.art)**
|
||||||
|
|
||||||
@@ -40,7 +40,7 @@ bar/
|
|||||||
│ ├── recipes/
|
│ ├── recipes/
|
||||||
│ │ ├── _index.md # Archive front matter
|
│ │ ├── _index.md # Archive front matter
|
||||||
│ │ └── {slug}/
|
│ │ └── {slug}/
|
||||||
│ │ ├── index.md # Cocktail page (426 bundles)
|
│ │ ├── index.md # Cocktail page (425 bundles)
|
||||||
│ │ └── cocktail.webp # AI-generated image (optional)
|
│ │ └── cocktail.webp # AI-generated image (optional)
|
||||||
│
|
│
|
||||||
├── layouts/
|
├── layouts/
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{- $pages := .Site.RegularPages -}}
|
{{- $pages := where .Site.RegularPages "Section" "recipes" -}}
|
||||||
{{- $featured := first 8 (shuffle $pages) -}}
|
{{- $featured := first 8 (shuffle $pages) -}}
|
||||||
{{- $hero := index (shuffle $pages) 0 -}}
|
{{- $hero := index (shuffle $pages) 0 -}}
|
||||||
{{- $cats := .Site.Taxonomies.categories.ByCount -}}
|
{{- $cats := .Site.Taxonomies.categories.ByCount -}}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<span class="font-serif text-[32px] font-medium tracking-[-0.01em] leading-none text-ink">Bar Pivoine</span>
|
<span class="font-serif text-[32px] font-medium tracking-[-0.01em] leading-none text-ink">Bar Pivoine</span>
|
||||||
</a>
|
</a>
|
||||||
<div class="w-full h-px bg-warm/10 mb-4"></div>
|
<div class="w-full h-px bg-warm/10 mb-4"></div>
|
||||||
{{- $count := len .Site.RegularPages -}}
|
{{- $count := len (where .Site.RegularPages "Section" "recipes") -}}
|
||||||
<p class="text-ink-mute text-sm leading-relaxed">A field guide to the good pour. {{ $count }} cocktail recipes, low light, honest measures, no garnish left behind.</p>
|
<p class="text-ink-mute text-sm leading-relaxed">A field guide to the good pour. {{ $count }} cocktail recipes, low light, honest measures, no garnish left behind.</p>
|
||||||
<p class="font-mono text-[11px] text-ink-faint leading-relaxed mt-3">Recipes from the <a href="https://www.kaggle.com/datasets/aadyasingh55/cocktails" class="underline underline-offset-2 hover:text-ink-soft transition-colors duration-[180ms]">open cocktail dataset</a> · imagery via FLUX.2 pro</p>
|
<p class="font-mono text-[11px] text-ink-faint leading-relaxed mt-3">Recipes from the <a href="https://www.kaggle.com/datasets/aadyasingh55/cocktails" class="underline underline-offset-2 hover:text-ink-soft transition-colors duration-[180ms]">open cocktail dataset</a> · imagery via FLUX.2 pro</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user