{{ $page := . }} {{ $copyright := site.Copyright | markdownify }} {{ $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 $page.File }} {{ if $fileediturl }} {{ $fileediturl = printf $fileediturl $page.File.Path }} {{ end }} {{ if $filehistoryurl }} {{ $filehistoryurl = printf $filehistoryurl $page.File.Path }} {{ end }} {{ end }}