Move file URL config from page to site

master
Will Faught 5 months ago
parent c5745aab91
commit b605eac1e8

@ -225,10 +225,6 @@ disable_title = false
disable_toc = 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
base_schema = {} # JSON-LD schema that all page schemas override
# Example:
@ -268,6 +264,10 @@ disable_description = false
disable_license = 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
disable_breadcrumbs = false
disable_menu = false

@ -1,8 +1,8 @@
{{ $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" }}
{{ $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" }}
{{ $next := $page.NextInSection | and ($page.Param "paige.pages.disable_next" | not) }}
{{ $prev := $page.PrevInSection | and ($page.Param "paige.pages.disable_prev" | not) }}

Loading…
Cancel
Save