From 941ca77a327f595e50e0cd22d35e984afb29530d Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Fri, 29 Mar 2019 16:59:00 +0100 Subject: Rename DateFormat to BookDateFormat, make format optional --- README.md | 12 +++++++----- exampleSite/config.yml | 8 +++++--- layouts/partials/docs/git-footer.html | 5 +++-- layouts/posts/list.html | 3 ++- layouts/posts/single.html | 3 ++- 5 files changed, 19 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index a74c9b6..93269b2 100644 --- a/README.md +++ b/README.md @@ -101,9 +101,6 @@ enableGitInfo: true disableKinds: ["taxonomy", "taxonomyTerm"] params: - # Configure the date format utilised on the pages - TODO, review git-footer.html - DateFormat: "January 2, 2006" - # (Optional, default true) Show or hide table of contents globally # You can also specify this parameter per page in front matter BookShowToC: true @@ -116,10 +113,10 @@ params: # You can also set value to "*" to render all sections to menu BookSection: docs - # This value is duplicate of $link-color for making active link highlight in menu bundle mode + # (Optional) This value is duplicate of $link-color for making active link highlight in menu bundle mode # BookMenuBundleActiveLinkColor: \#004ed0 - # Include JS scripts in pages. Disabled by default. + # (Optional, default false) Include JS scripts in pages. Disabled by default. # - Keep side menu on same scroll position during navigation BookEnableJS: true @@ -131,6 +128,11 @@ params: # Disabled by default. Uncomment to enable. Requires 'BookRepo' param. # Path must point to 'content' directory of repo. BookEditPath: edit/master/exampleSite/content + + # (Optional, default January 2, 2006) Configure the date format used on the pages + # - In git information + # - In blog posts + BookDateFormat: "Jan 2, 2006" ``` diff --git a/exampleSite/config.yml b/exampleSite/config.yml index 0cf2eb7..d450485 100644 --- a/exampleSite/config.yml +++ b/exampleSite/config.yml @@ -15,9 +15,6 @@ pygmentsStyle: monokailight pygmentsCodeFences: true params: - # Configure the date format utilised on the pages - DateFormat: "Jan 2, 2006" - # (Optional, default true) Show or hide table of contents globally # You can also specify this parameter per page in front matter BookShowToC: true @@ -45,3 +42,8 @@ params: # Disabled by default. Uncomment to enable. Requires 'BookRepo' param. # Path must point to 'content' directory of repo. BookEditPath: edit/master/exampleSite/content + + # Configure the date format used on the pages + # - In git information + # - In blog posts + BookDateFormat: "Jan 2, 2006" \ No newline at end of file diff --git a/layouts/partials/docs/git-footer.html b/layouts/partials/docs/git-footer.html index a8a126b..4a856d3 100644 --- a/layouts/partials/docs/git-footer.html +++ b/layouts/partials/docs/git-footer.html @@ -2,8 +2,9 @@