{{ $page := . }} {{ $copyright := $page.Param "paige.copyright" | default site.Copyright | markdownify | and ($page.Param "paige.site.disable_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.disable_license" | not) }} {{ $theme := "https://github.com/willfaught/paige" }} {{ $target := partial "paige/target.html" (dict "page" $page "url" $theme) }} {{ if eq $credit nil }} {{ $targetString := "" }} {{ with $target }} {{ $targetString = printf ` target="%s"` . }} {{ end }} {{ $credit = printf `Paige Theme` $theme $targetString | safeHTML }} {{ else }} {{ $credit = markdownify $credit }} {{ end }} {{ $credit = $credit | and ($page.Param "paige.site.disable_credit" | not) }} {{ if or $copyright $credit $first $last $license }} {{ end }}