Flavour text for showing recipe counts per tag

This commit is contained in:
June 2025-08-16 14:58:47 +12:00
parent 0cb1d99e75
commit c026780460
Signed by: breadone
GPG Key ID: FDC19FE143200483

View File

@ -8,6 +8,10 @@ const recipes = await client.getRecipesOfTag(name) // todo redir to 404 if not f
---
<SiteLayout>
<p class="text-xl pb-2">
{recipes.length} { recipes.length == 1 ? "Recipe" : "Recipes" } with: <code class="bg-white/10 px-1 rounded-lg" >{name}</code>
</p>
<div class="grid md:gap-2 gap-3 grid-cols-2 md:grid-cols-2 lg:grid-cols-4 xl:grid-cols-8">
{
recipes.map(r => (