{{ define "main" }} {{ $c := default "products" .Params.collection }}{{ $shop := "" }}{{ with index .Site.Lists $c }}{{ $shop = .Path }}{{ end }}

{{ .Title }}

{{ with .Content }}
{{ . }}
{{ end }}
{{ if cartOn }}

The cart needs JavaScript. Without it, choose Buy now on a product to check out with just that one.

{{ else }}

The cart is off: turn it on with cart: true in site.yaml.

{{ end }}
{{ end }}