{{ $params := . }} {{ $page := . }} {{ $listshowcontent := false }} {{ if reflect.IsMap $params }} {{ $page = $params.page }} {{ $listshowcontent = $params.listshowcontent }} {{ end }} {{ $class := $page.Param "paige.main.content.class" | default "mw-100 paige-content" }} {{ $content := "" }} {{ if $page.Param "paige.main.content.hide" | not }} {{ $content = cond ($listshowcontent | not) ($page.Content | replaceRE `()` (printf `${1}#${3}` (i18n "paige_aria_section_link")) | safeHTML) $page.Content }} {{ end }} {{ with $content }}
{{ . }}
{{ end }}