Products with photos, a price, options and a Buy button that opens the payment provider's own checkout (Stripe Payment Links, PayPal, Square). No cart, no card details on the site, no script. Product data for search engines (price, currency, in stock or sold out), and a money template function: 24 "USD" is $24.00, 9 "SEK" is 9.00 SEK.
10 lines
356 B
HTML
10 lines
356 B
HTML
{{ define "main" }}
|
|
<link rel="stylesheet" href="{{ asset "packs/shop/shop.css" }}">
|
|
<section class="wrap page shop">
|
|
<h1>{{ .Title }}</h1>
|
|
{{ with .Content }}<div class="prose">{{ . }}</div>{{ end }}
|
|
<ul class="shop-grid">{{ range .Paginator.Items }}{{ template "product-card" . }}{{ end }}</ul>
|
|
{{ template "pagination" . }}
|
|
</section>
|
|
{{ end }}
|