diff --git a/README.md b/README.md index 43c45498..9e95c41c 100644 --- a/README.md +++ b/README.md @@ -285,9 +285,6 @@ 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.menu] style = "links" # Must be "links", "pills", "tabs", or "underline" diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index c50ebafb..df9c3637 100644 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -96,9 +96,6 @@ file_history_url = "https://github.com/willfaught/paige/commits/master/exampleSi site_title = "Paige" site_description = "Powerful, pliable pixel perfection" -[params.paige.git] -commit_url = "https://github.com/willfaught/paige/commit/%s" - [[params.paige.feed.atom.authors]] email = "will.faught@example.com" name = "Will Faught" diff --git a/i18n/en.yaml b/i18n/en.yaml index 88b81a9e..44718487 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -10,6 +10,9 @@ paige_figure: paige_aria_section_link: other: Link to this section +paige_edit_history: + other: Edit history + paige_edit_this_page: other: Edit this page diff --git a/layouts/partials/paige/footer.html b/layouts/partials/paige/footer.html index 9a5663f9..fdefbea3 100644 --- a/layouts/partials/paige/footer.html +++ b/layouts/partials/paige/footer.html @@ -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 }}