Move file URL config from page to site
This commit is contained in:
@@ -225,10 +225,6 @@ disable_title = false
|
|||||||
disable_toc = false
|
disable_toc = false
|
||||||
disable_word_count = false
|
disable_word_count = false
|
||||||
|
|
||||||
# Navigation
|
|
||||||
edit_url = "" # Example: "https://github.com/account/project/edit/master/content/%s"
|
|
||||||
history_url = "" # Example: "https://github.com/account/project/commits/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:
|
||||||
@@ -268,6 +264,10 @@ disable_description = false
|
|||||||
disable_license = false
|
disable_license = false
|
||||||
disable_title = false
|
disable_title = false
|
||||||
|
|
||||||
|
# Git
|
||||||
|
edit_url = "" # Example: "https://github.com/account/project/edit/master/content/%s"
|
||||||
|
history_url = "" # Example: "https://github.com/account/project/commits/master/content/%s"
|
||||||
|
|
||||||
# Navigation
|
# Navigation
|
||||||
disable_breadcrumbs = false
|
disable_breadcrumbs = false
|
||||||
disable_menu = false
|
disable_menu = false
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
{{ $page := . }}
|
{{ $page := . }}
|
||||||
|
|
||||||
{{ $edit := $page.Param "paige.pages.edit_url" | and ($page.Param "paige.pages.disable_edit" | not) }}
|
{{ $edit := $page.Param "paige.site.edit_url" | and ($page.Param "paige.pages.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.pages.history_url" | and ($page.Param "paige.pages.disable_history" | not) }}
|
{{ $history := $page.Param "paige.site.history_url" | and ($page.Param "paige.pages.disable_history" | not) }}
|
||||||
{{ $last := templates.Exists "partials/paige/page-footer-last.html" }}
|
{{ $last := templates.Exists "partials/paige/page-footer-last.html" }}
|
||||||
{{ $next := $page.NextInSection | and ($page.Param "paige.pages.disable_next" | not) }}
|
{{ $next := $page.NextInSection | and ($page.Param "paige.pages.disable_next" | not) }}
|
||||||
{{ $prev := $page.PrevInSection | and ($page.Param "paige.pages.disable_prev" | not) }}
|
{{ $prev := $page.PrevInSection | and ($page.Param "paige.pages.disable_prev" | not) }}
|
||||||
|
Reference in New Issue
Block a user