diff --git a/README.md b/README.md index ae4bd7a9..182ac174 100644 --- a/README.md +++ b/README.md @@ -177,7 +177,6 @@ color_scheme = "auto" # Must be "auto", "dark", or "light" credit = 'Paige Theme' date_format = ":date_long" # Hugo date format description = "" # Site description. Appears above the menu and below the site title if set. -edit = "" # File edit URL. Example: "https://github.com/account/project/edit/master/content/%s". exclude_feeds = false # Exclude this page from feeds exclude_search = false # Exclude the page from search external_link_new_tab = false # Open external links in new tabs @@ -228,6 +227,8 @@ disable_next = false disable_prev = false disable_toc = false +edit_url = "" # File edit URL. Example: "https://github.com/account/project/edit/master/content/%s". + # Schema base_schema = {} # JSON-LD schema that all page schemas override # Example: diff --git a/layouts/partials/paige/page-footer.html b/layouts/partials/paige/page-footer.html index 1a17bb88..738d67f5 100644 --- a/layouts/partials/paige/page-footer.html +++ b/layouts/partials/paige/page-footer.html @@ -1,6 +1,6 @@ {{ $page := . }} -{{ $edit := $page.Param "paige.edit" | and ($page.Param "paige.page.disable_edit" | not) }} +{{ $edit := $page.Param "paige.page.edit_url" | and ($page.Param "paige.page.disable_edit" | not) }} {{ $first := templates.Exists "partials/paige/page-footer-first.html" }} {{ $history := $page.Param "paige.history" | and ($page.Param "paige.page.disable_history" | not) }} {{ $last := templates.Exists "partials/paige/page-footer-last.html" }}