Rename paige.edit to paige.page.edit_url
This commit is contained in:
@@ -177,7 +177,6 @@ color_scheme = "auto" # Must be "auto", "dark", or "light"
|
|||||||
credit = '<a class="link-secondary text-decoration-none" href="https://github.com/willfaught/paige">Paige Theme</a>'
|
credit = '<a class="link-secondary text-decoration-none" href="https://github.com/willfaught/paige">Paige Theme</a>'
|
||||||
date_format = ":date_long" # Hugo date format
|
date_format = ":date_long" # Hugo date format
|
||||||
description = "" # Site description. Appears above the menu and below the site title if set.
|
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_feeds = false # Exclude this page from feeds
|
||||||
exclude_search = false # Exclude the page from search
|
exclude_search = false # Exclude the page from search
|
||||||
external_link_new_tab = false # Open external links in new tabs
|
external_link_new_tab = false # Open external links in new tabs
|
||||||
@@ -228,6 +227,8 @@ disable_next = false
|
|||||||
disable_prev = false
|
disable_prev = false
|
||||||
disable_toc = false
|
disable_toc = false
|
||||||
|
|
||||||
|
edit_url = "" # File edit URL. Example: "https://github.com/account/project/edit/master/content/%s".
|
||||||
|
|
||||||
# Schema
|
# Schema
|
||||||
base_schema = {} # JSON-LD schema that all page schemas override
|
base_schema = {} # JSON-LD schema that all page schemas override
|
||||||
# Example:
|
# Example:
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{{ $page := . }}
|
{{ $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" }}
|
{{ $first := templates.Exists "partials/paige/page-footer-first.html" }}
|
||||||
{{ $history := $page.Param "paige.history" | and ($page.Param "paige.page.disable_history" | not) }}
|
{{ $history := $page.Param "paige.history" | and ($page.Param "paige.page.disable_history" | not) }}
|
||||||
{{ $last := templates.Exists "partials/paige/page-footer-last.html" }}
|
{{ $last := templates.Exists "partials/paige/page-footer-last.html" }}
|
||||||
|
Reference in New Issue
Block a user