{{ partial "head.html" . }} {{ define "header" }} {{ partial "header.html" . }} {{ end }} {{ define "footer" }} {{ partial "footer.html" . }} {{ end }} {{ block "header" . }}{{ end }} {{ partial "bookshop_bindings" `.Params.content_blocks` }} {{ partial "bookshop_partial" (slice "page" .Params.content_blocks) }} {{ block "main" . }}{{ end }} {{ block "footer" . }}{{ end }} {{/* Set by the soundcloud-player shortcode while the content above was rendered: the player script is only worth fetching on pages with one. */}} {{ $soundcloud := .Store.Get "hasSoundCloudPlayer" }} {{/* Published as /assets/js/.min.js, which jsDelivr also serves (minifying the repo file), so the CDN URL and the site's own copy line up */}} {{ $js := slice "scripts" "common" }} {{ if $soundcloud }}{{ $js = $js | append "soundcloud-player" }}{{ end }} {{ range $js }} {{ $res := resources.Get (printf "js/%s.js" .) | resources.Copy (printf "assets/js/%s.js" .) | resources.Minify }} {{ end }}