{{ $page := . }} {{ $copyright := $page.Param "paige.copyright" | default site.Copyright | markdownify | and ($page.Param "paige.site.hide_copyright" | not) }} {{ $credit := $page.Param "paige.credit" }} {{ $first := templates.Exists "partials/paige/footer-first.html" }} {{ $last := templates.Exists "partials/paige/footer-last.html" }} {{ $license := $page.Param "paige.license" | markdownify | and ($page.Param "paige.site.hide_license" | not) }} {{ $theme := "https://github.com/willfaught/paige" }} {{ $target := partial "paige/target.html" (dict "page" $page "url" $theme) }} {{ if eq $credit nil }} {{ $credit = `Paige Theme` | markdownify }} {{ else }} {{ $credit = markdownify $credit }} {{ end }} {{ $credit = $credit | and ($page.Param "paige.site.hide_credit" | not) }} {{ if or $copyright $credit $first $last $license }} {{ end }}