{{ define "main" }} {{/* One tag's products, in the shop's order: for content/tags/.md with layout: shelf. collection: picks the products (default products). */}} {{ $c := default "products" .Params.collection }} {{ $list := .Pages }}{{ if eq .Kind "term" }}{{ $list = tagged .Taxonomy .Term (collection $c) }}{{ end }}
{{ with index .Site.Lists $c }}

{{ .Title }}

{{ end }}

{{ .Title }}

{{ with .Content }}
{{ . }}
{{ else }}{{ with .Summary }}

{{ . }}

{{ end }}{{ end }}
{{ end }}