Renamed paige.link to file_link
This commit is contained in:
@@ -288,16 +288,16 @@ logo = "" # Example is "/logo.webp"
|
|||||||
managing_editor = "" # Example is "will.faught@example.com (Will Faught)"
|
managing_editor = "" # Example is "will.faught@example.com (Will Faught)"
|
||||||
web_master = "" # Example is "will.faught@example.com (Will Faught)"
|
web_master = "" # Example is "will.faught@example.com (Will Faught)"
|
||||||
|
|
||||||
[paige.git]
|
[paige.file_link] # A link placed at the top of the footer for pages with files
|
||||||
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
|
|
||||||
content = "" # Example is "Edit this page"
|
content = "" # Example is "Edit this page"
|
||||||
disable = false
|
disable = false
|
||||||
url = ""
|
url = ""
|
||||||
# The formatting verb "%s" is replaced with the path to the file relative to the content directory.
|
# 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".
|
# 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]
|
[paige.menu]
|
||||||
style = "pills" # Must be "links", "pills", "tabs", or "underline"
|
style = "pills" # Must be "links", "pills", "tabs", or "underline"
|
||||||
|
|
||||||
|
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
{{ $copyright := site.Copyright | markdownify }}
|
{{ $copyright := site.Copyright | markdownify }}
|
||||||
{{ $href := "https://github.com/willfaught/paige" }}
|
{{ $href := "https://github.com/willfaught/paige" }}
|
||||||
{{ $linkcontent := $page.Param "paige.link.content" | markdownify }}
|
{{ $linkcontent := $page.Param "paige.file_link.content" | markdownify }}
|
||||||
{{ $linkurl := $page.Param "paige.link.url" }}
|
{{ $linkurl := $page.Param "paige.file_link.url" }}
|
||||||
{{ $target := partial "paige/target.html" (dict "page" $page "url" $href) }}
|
{{ $target := partial "paige/target.html" (dict "page" $page "url" $href) }}
|
||||||
|
|
||||||
{{ if and $linkurl $page.File }}
|
{{ if and $linkurl $page.File }}
|
||||||
@@ -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.disable")) }}
|
{{ if and $linkcontent $linkurl (not ($page.Param "paige.file_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>
|
||||||
|
Reference in New Issue
Block a user