{{ $page := . }} {{ $copyright := site.Copyright }} {{ $credit := not site.Params.paige.hide_credit_link }} {{ $first := templates.Exists "partials/paige/footer-first.html" }} {{ $last := templates.Exists "partials/paige/footer-last.html" }} {{ if or $copyright $credit $first $last }} {{ end }}