{{- $page := .page }} {{ $summary := .summary }} {{ $featured_image := partial "functions/get_featured_image" $page }} {{/* Get author and publisher info */}} {{ $author := partial "functions/get_author_name" $page }} {{ $branding := partialCached "functions/get_branding" $page "branding" }} {{ $publisher := $branding.organization }} {{/* 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 }}