diff --git a/README.md b/README.md index 4c9e91aa..53a63b5e 100644 --- a/README.md +++ b/README.md @@ -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" diff --git a/layouts/partials/paige/footer.html b/layouts/partials/paige/footer.html index 16a4bfad..086a5a7f 100644 --- a/layouts/partials/paige/footer.html +++ b/layouts/partials/paige/footer.html @@ -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")) }}