From 424d85797f0e972bd9c31ba43653cd4386c048e5 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Fri, 12 Jul 2024 12:34:42 -0700 Subject: [PATCH] Add paige.license config --- README.md | 3 +++ layouts/partials/paige/footer.html | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index 80d8cff5..cb5345a0 100644 --- a/README.md +++ b/README.md @@ -182,6 +182,7 @@ external_link_new_tab = false # Open external links in new tabs file_edit_url = "" # Example: "https://github.com/account/project/edit/master/content/%s" 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 menu_style = "links" # Must be "links", "pills", "tabs", or "underline" site_title = "" # Appears above the menu, above the site description, if set @@ -1024,6 +1025,8 @@ Page identifiers:
The header.
#paige-keywords
The keywords.
+
#paige-license
+
The license.
#paige-main
The main.
#paige-menu
diff --git a/layouts/partials/paige/footer.html b/layouts/partials/paige/footer.html index 3f090c5f..e74ffaea 100644 --- a/layouts/partials/paige/footer.html +++ b/layouts/partials/paige/footer.html @@ -5,6 +5,7 @@ {{ $theme := "https://github.com/willfaught/paige" }} {{ $fileediturl := $page.Param "paige.file_edit_url" }} {{ $filehistoryurl := $page.Param "paige.file_history_url" }} +{{ $license := $page.Param "paige.license" | markdownify }} {{ $target := partial "paige/target.html" (dict "page" $page "url" $theme) }} @@ -65,6 +66,10 @@ {{ end }} + {{ with $license }} +

{{ . }}

+ {{ end }} + {{ with $credit }}

{{ . }}

{{ end }}