Files

15 lines
694 B
HTML

{{- /* {{< cta text="Play Now" style="primary" size="lg" subid="custom" >}}
Reuses partials/cta-button.html so the affiliate link is built in ONE place. */ -}}
{{- $noCtaSlugs := slice "faq" "responsible-gambling" "terms" "privacy-policy" "cookie-policy" "affiliate-disclosure" "about" "editorial-policy" -}}
{{- $hideCta := or .Page.Params.hideCta (in $noCtaSlugs .Page.Slug) (eq .Page.Section "authors") -}}
{{- if not $hideCta -}}
<div class="my-6">
{{ partial "cta-button.html" (dict
"page" .Page
"text" (.Get "text" | default (i18n "playNow"))
"style" (.Get "style")
"size" (.Get "size")
"subid" (.Get "subid")) }}
</div>
{{- end -}}