{{- $wcPage := .wcPage -}} {{- $wcBlock := .wcBlock -}} {{- $wcIdentifier := .wcIdentifier -}} {{/* Enable Alpine.js for interactivity */}} {{ $wcPage.Page.Store.Set "has_alpine" true }} {{/* Background is now handled by parse_block_v3.html gradient_mesh system */}} {{/* Content only - wrapper and styling applied by framework */}}
{{/* Badge */}} {{ with $wcBlock.content.badge }}
{{ with .show_pulse }} {{ end }} {{ .text | markdownify }}
{{ end }} {{/* Title - supports ==highlight== syntax for gradient text */}} {{ $title := $wcBlock.content.title }} {{/* Replace ==text== with gradient-highlighted spans - supports multiple highlights */}} {{ $title = replaceRE "==([^=]+)==" "$1" $title }}

{{ $title | markdownify | emojify | safeHTML }}

{{/* Subtitle */}} {{ with $wcBlock.content.subtitle }}

{{ . | markdownify | emojify }}

{{ end }} {{/* Search Box - Integrates with Pagefind */}}
{{/* Quick search suggestions - Now trigger Pagefind with pre-filled query */}} {{ with $wcBlock.content.suggestions }}
Popular: {{ range . }} {{ end }}
{{ end }}
{{/* Stats */}} {{ if $wcBlock.content.stats }}
{{ range $wcBlock.content.stats }}
{{ .value }}
{{ .label }}
{{ end }}
{{ end }}