{{-- /fermentos/{categoria} — la página de estante (docs/paginas/fermentos.md §4). Página de pleno derecho, no un filtro: H1 en forma de búsqueda, intro propia, rejilla y el bloque «¿cuál elijo?». --}} @extends('layouts.web') @php($titulo = $categoria->web_title ?: $categoria->name) @php($publicadas = $categoria->guides->filter->esPublicadaWeb()->values()) @section('seo') @endsection @push('head') @php($ld = [ ['@context' => 'https://schema.org', '@type' => 'CollectionPage', 'name' => $titulo, 'url' => ruta('fermentos.show', $categoria->slug), 'mainEntity' => ['@type' => 'ItemList', 'itemListElement' => $publicadas->map(fn ($g, $i) => [ '@type' => 'ListItem', 'position' => $i + 1, 'name' => $g->name, 'url' => ruta('fermentos.show', $g->slug)])->all()]], ['@context' => 'https://schema.org', '@type' => 'BreadcrumbList', 'itemListElement' => [ ['@type' => 'ListItem', 'position' => 1, 'name' => 'Inicio', 'item' => url('/')], ['@type' => 'ListItem', 'position' => 2, 'name' => 'Fermentos', 'item' => ruta('fermentos.index')], ['@type' => 'ListItem', 'position' => 3, 'name' => $categoria->name, 'item' => ruta('fermentos.show', $categoria->slug)], ]], ]) @foreach($ld as $bloque) @endforeach @endpush @section('content') Inicio › Fermentos › {{ $categoria->name }} {{ $titulo }} @if($categoria->intro) @foreach(preg_split('/\n\n+/', $categoria->intro) as $p) {{ $p }} @endforeach @endif @foreach($categoria->guides as $g) @endforeach @if($categoria->chooser) ¿Cuál elijo? {{ $categoria->chooser }} @endif @if($otras->isNotEmpty()) Los otros estantes Todos los fermentos @foreach($otras as $o) {{ $o->name }} @endforeach @endif @endsection
{{ $p }}
{{ $categoria->chooser }}
Los otros estantes