{{ define "main" }}
{{ range .Pages.ByPublishDate.Reverse }} {{ $.Scratch.Set "relLink" .RelPermalink }}

{{ .Title }}

{{ $.Scratch.Set "category" .Title }} {{ range $name, $taxonomy := .Site.Taxonomies }} {{ range $key, $value := $taxonomy }} {{ if (eq $key ($.Scratch.Get "category")) }} {{ $.Scratch.Set "count" (len $value) }} {{ if (gt (len $value) 1 ) }} {{ len $value }} Recipes Found {{ else }} 1 Recipe Found {{ end }} {{ end }} {{ end }} {{ end }}
{{ $.Scratch.Set "category" .Title }} {{ range $name, $taxonomy := .Site.Taxonomies }} {{ range $key, $value := $taxonomy }} {{ if (eq $key ($.Scratch.Get "category")) }} {{ range first 5 $value.Pages }}
  • {{ .LinkTitle }}
  • {{ end }} {{ if (gt (len $value) 5) }} See All {{ end }} {{ end }} {{ end }} {{ end }}

    {{ .Summary }}

    {{/*

    {{ .Title }}

    {{ partial "metadata.html" . }}

    {{ .Summary }}

    */}}
    {{ end }}
    {{ end }}