Rename paige.link.hide_page to disable

master
Will Faught 2 years ago
parent e4c6b38836
commit dcc76cf367

@ -293,7 +293,7 @@ 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.link] # A link placed at the top of the footer for pages with files
content = "" # Example is "Edit this page" content = "" # Example is "Edit this page"
hide_page = false disable = false
url = "" # Example is "https://github.com/willfaught/paige/edit/master/content/%s" url = "" # Example is "https://github.com/willfaught/paige/edit/master/content/%s"
[paige.menu] [paige.menu]

@ -15,7 +15,7 @@
{{ partial "paige/footer-first.html" . }} {{ partial "paige/footer-first.html" . }}
{{ end }} {{ end }}
{{ if and $linkcontent $linkurl (not ($page.Param "paige.link.hide_page")) }} {{ if and $linkcontent $linkurl (not ($page.Param "paige.link.disable")) }}
<p class="text-center" id="paige-link"> <p class="text-center" id="paige-link">
<a class="link-secondary" href="{{ $linkurl }}">{{ $linkcontent }}</a> <a class="link-secondary" href="{{ $linkurl }}">{{ $linkcontent }}</a>
</p> </p>

Loading…
Cancel
Save