feat: strengthen operator template and localized SEO UX
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
{{- /* {{< cta text="Play Now" style="primary" size="lg" subid="custom" >}}
|
||||
Reuses partials/cta-button.html so the affiliate link is built in ONE place. */ -}}
|
||||
<div class="my-6">
|
||||
{{ partial "cta-button.html" (dict
|
||||
"page" .Page
|
||||
"text" (.Get "text" | default "Play Now")
|
||||
"style" (.Get "style")
|
||||
"size" (.Get "size")
|
||||
"subid" (.Get "subid")) }}
|
||||
</div>
|
||||
{{- $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 -}}
|
||||
|
||||
Reference in New Issue
Block a user