Renamed paige.link to file_link

master
Will Faught 2 years ago
parent 254710f77e
commit 0dc194e0f8

@ -288,16 +288,16 @@ logo = "" # Example is "/logo.webp"
managing_editor = "" # Example is "will.faught@example.com (Will Faught)"
web_master = "" # Example is "will.faught@example.com (Will Faught)"
[paige.git]
commit_url = "" # Example is "https://github.com/willfaught/paige/commit/%s"
[paige.link] # A link placed at the top of the footer for pages with files
[paige.file_link] # A link placed at the top of the footer for pages with files
content = "" # Example is "Edit this page"
disable = false
url = ""
# The formatting verb "%s" is replaced with the path to the file relative to the content directory.
# Example is "https://github.com/willfaught/paige/edit/master/content/%s".
[paige.git]
commit_url = "" # Example is "https://github.com/willfaught/paige/commit/%s"
[paige.menu]
style = "pills" # Must be "links", "pills", "tabs", or "underline"

@ -2,8 +2,8 @@
{{ $copyright := site.Copyright | markdownify }}
{{ $href := "https://github.com/willfaught/paige" }}
{{ $linkcontent := $page.Param "paige.link.content" | markdownify }}
{{ $linkurl := $page.Param "paige.link.url" }}
{{ $linkcontent := $page.Param "paige.file_link.content" | markdownify }}
{{ $linkurl := $page.Param "paige.file_link.url" }}
{{ $target := partial "paige/target.html" (dict "page" $page "url" $href) }}
{{ if and $linkurl $page.File }}
@ -15,7 +15,7 @@
{{ partial "paige/footer-first.html" . }}
{{ end }}
{{ if and $linkcontent $linkurl (not ($page.Param "paige.link.disable")) }}
{{ if and $linkcontent $linkurl (not ($page.Param "paige.file_link.disable")) }}
<p class="text-center" id="paige-link">
<a class="link-secondary" href="{{ $linkurl }}">{{ $linkcontent }}</a>
</p>

Loading…
Cancel
Save