Replace git.commit_url config with file_history_url
This commit is contained in:
@@ -3,11 +3,18 @@
|
||||
{{ $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 and $fileediturl $page.File }}
|
||||
{{ $fileediturl = printf $fileediturl $page.File.Path }}
|
||||
{{ if $page.File }}
|
||||
{{ if $fileediturl }}
|
||||
{{ $fileediturl = printf $fileediturl $page.File.Path }}
|
||||
{{ end }}
|
||||
|
||||
{{ if $filehistoryurl }}
|
||||
{{ $filehistoryurl = printf $filehistoryurl $page.File.Path }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
<footer class="mb-3" id="paige-footer">
|
||||
@@ -31,10 +38,20 @@
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ if $fileediturl }}
|
||||
<p class="text-center" id="paige-file-link">
|
||||
<a class="link-secondary" href="{{ $fileediturl | safeURL }}">{{ i18n "paige_edit_this_page" }}</a>
|
||||
</p>
|
||||
{{ if and $page.File (or $fileediturl $filehistoryurl) }}
|
||||
<div class="mb-3" id="paige-file-links">
|
||||
{{ if $fileediturl }}
|
||||
<p class="mb-0 text-center" id="paige-file-link">
|
||||
<a class="link-secondary" href="{{ $fileediturl | safeURL }}">{{ i18n "paige_edit_this_page" }}</a>
|
||||
</p>
|
||||
{{ end }}
|
||||
|
||||
{{ if $filehistoryurl }}
|
||||
<p class="mb-0 text-center" id="paige-file-link">
|
||||
<a class="link-secondary" href="{{ $filehistoryurl | safeURL }}">{{ i18n "paige_edit_history" }}</a>
|
||||
</p>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ with $copyright }}
|
||||
|
Reference in New Issue
Block a user