{{- $page := .page }} {{ $summary := .summary }} {{ $featured_image := ($page.Resources.ByType "image").GetMatch "*featured*" }} {{/* Get author and publisher info */}} {{ $author := partial "functions/get_author_name" $page }} {{ $publisher := site.Params.marketing.seo.org_name | default site.Title }} {{/* Extract question - prioritize explicit param, fallback to title */}} {{ $question := $page.Params.question | default $page.Title }} {{/* Extract answer - prioritize explicit param, fallback to summary, then content */}} {{ $answer := "" }} {{ if $page.Params.answer }} {{ $answer = $page.Params.answer }} {{ else if $page.Params.summary }} {{ $answer = $page.Params.summary }} {{ else }} {{ $answer = $page.Content | plainify | truncate 500 }} {{ end }} {{/* Get upvote/downvote counts if available */}} {{ $upvote_count := $page.Params.upvote_count | default 0 }} {{ $downvote_count := $page.Params.downvote_count | default 0 }}