diff --git a/README.md b/README.md index fe77578d..a87619cf 100644 --- a/README.md +++ b/README.md @@ -181,7 +181,7 @@ date_format = ":date_long" # Hugo date format description = "" # Site description. Appears above the menu, below the site title, if set. edit = "" # File edit URL. Example: "https://github.com/account/project/edit/master/content/%s". external_link_new_tab = false # Open external links in new tabs -file_history_url = "" # Example: "https://github.com/account/project/commits/master/content/%s" +history = "" # File history URL. Example: "https://github.com/account/project/commits/master/content/%s". keyword_style = "text" # Must be "text" or "pills" license = "" # Example: "CC BY 4.0 License", "CC BY-NC 4.0 License", "MIT License" math = false # Enable math typesetting diff --git a/exampleSite/content/customizations/_index.md b/exampleSite/content/customizations/_index.md index 3c70dd00..f661b493 100644 --- a/exampleSite/content/customizations/_index.md +++ b/exampleSite/content/customizations/_index.md @@ -8,7 +8,7 @@ title = "Customizations" [paige] credit = "Paige Theme" edit = "https://github.com/willfaught/paige/edit/master/exampleSite/content/%s" -file_history_url = "https://github.com/willfaught/paige/commits/master/exampleSite/content/%s" +history = "https://github.com/willfaught/paige/commits/master/exampleSite/content/%s" license = "MIT License" [paige.list_page] hide_authors = false @@ -44,7 +44,7 @@ This page has the following parameters: [paige] credit = "Paige Theme" edit = "https://github.com/willfaught/paige/edit/master/exampleSite/content/%s" -file_history_url = "https://github.com/willfaught/paige/commits/master/exampleSite/content/%s" +history = "https://github.com/willfaught/paige/commits/master/exampleSite/content/%s" license = "MIT License" [paige.list_page] hide_authors = false diff --git a/exampleSite/content/customizations/show.md b/exampleSite/content/customizations/show.md index 9d913741..8bae509e 100644 --- a/exampleSite/content/customizations/show.md +++ b/exampleSite/content/customizations/show.md @@ -9,7 +9,7 @@ title = "Show Data" [paige] credit = "Paige Theme" edit = "https://github.com/willfaught/paige/edit/master/exampleSite/content/%s" -file_history_url = "https://github.com/willfaught/paige/commits/master/exampleSite/content/%s" +history = "https://github.com/willfaught/paige/commits/master/exampleSite/content/%s" license = "MIT License" [paige.list_page] hide_authors = false @@ -45,7 +45,7 @@ This page has the following parameters: [paige] credit = "Paige Theme" edit = "https://github.com/willfaught/paige/edit/master/exampleSite/content/%s" -file_history_url = "https://github.com/willfaught/paige/commits/master/exampleSite/content/%s" +history = "https://github.com/willfaught/paige/commits/master/exampleSite/content/%s" license = "MIT License" [paige.list_page] hide_authors = false diff --git a/exampleSite/content/customizations/style.md b/exampleSite/content/customizations/style.md index c63d09ee..c9315f8d 100644 --- a/exampleSite/content/customizations/style.md +++ b/exampleSite/content/customizations/style.md @@ -9,7 +9,7 @@ title = "Style Data" [paige] credit = "Paige Theme" edit = "https://github.com/willfaught/paige/edit/master/exampleSite/content/%s" -file_history_url = "https://github.com/willfaught/paige/commits/master/exampleSite/content/%s" +history = "https://github.com/willfaught/paige/commits/master/exampleSite/content/%s" license = "MIT License" style = """ #paige-authors, @@ -68,7 +68,7 @@ This page has the following parameters: [paige] credit = "Paige Theme" edit = "https://github.com/willfaught/paige/edit/master/exampleSite/content/%s" -file_history_url = "https://github.com/willfaught/paige/commits/master/exampleSite/content/%s" +history = "https://github.com/willfaught/paige/commits/master/exampleSite/content/%s" license = "MIT License" style = """ #paige-authors, diff --git a/layouts/partials/paige/page-footer.html b/layouts/partials/paige/page-footer.html index f44dd458..588fc8e5 100644 --- a/layouts/partials/paige/page-footer.html +++ b/layouts/partials/paige/page-footer.html @@ -1,8 +1,8 @@ {{ $page := . }} {{ $edit := $page.Param "paige.edit" | and ($page.Param "paige.page.hide_edit" | not) }} -{{ $filehistoryurl := $page.Param "paige.file_history_url" | and ($page.Param "paige.page.hide_history" | not) }} {{ $first := templates.Exists "partials/paige/page-footer-first.html" }} +{{ $history := $page.Param "paige.history" | and ($page.Param "paige.page.hide_history" | not) }} {{ $last := templates.Exists "partials/paige/page-footer-last.html" }} {{ $next := $page.NextInSection | and ($page.Param "paige.page.hide_next" | not) }} {{ $prev := $page.PrevInSection | and ($page.Param "paige.page.hide_prev" | not) }} @@ -12,18 +12,18 @@ {{ $edit = printf $edit $page.File.Path }} {{ end }} - {{ if $filehistoryurl }} - {{ $filehistoryurl = printf $filehistoryurl $page.File.Path }} + {{ if $history }} + {{ $history = printf $history $page.File.Path }} {{ end }} {{ end }} -{{ if or $edit $filehistoryurl $first $last $next $prev }} +{{ if or $edit $history $first $last $next $prev }}