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
-1
@@ -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 -}}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<span class="font-serif text-[32px] font-medium tracking-[-0.01em] leading-none text-ink">Bar Pivoine</span>
|
||||
</a>
|
||||
<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="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>
|
||||
|
||||
Reference in New Issue
Block a user