{{ $page := . }}
{{ $copyright := site.Copyright | markdownify }}
{{ $credit := $page.Param "paige.credit" }}
{{ $theme := "https://github.com/willfaught/paige" }}
{{ $fileediturl := $page.Param "paige.file_edit_url" }}
{{ $filehistoryurl := $page.Param "paige.file_history_url" }}
{{ $target := partial "paige/target.html" (dict "page" $page "url" $theme) }}
{{ if eq $credit nil }}
{{ $credit = `Paige Theme` | markdownify }}
{{ else }}
{{ $credit = markdownify $credit }}
{{ end }}
{{ if $page.File }}
{{ if $fileediturl }}
{{ $fileediturl = printf $fileediturl $page.File.Path }}
{{ end }}
{{ if $filehistoryurl }}
{{ $filehistoryurl = printf $filehistoryurl $page.File.Path }}
{{ end }}
{{ end }}