diff options
Diffstat (limited to 'hugo.toml')
| -rw-r--r-- | hugo.toml | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -81,7 +81,7 @@ enableGitInfo = true # (Optional, default docs) Specify root page to render child pages as menu. # Page is resoled by .GetPage function: https://gohugo.io/functions/getpage/ # For backward compatibility you can set '*' to render all sections to menu. Acts same as '/' - BookSection = '/theses' + BookSection = 'theses' # Set source repository location. # Used for 'Last Modified' and 'Edit this page' links. @@ -93,6 +93,12 @@ enableGitInfo = true # Value used to construct a URL consisting of BookRepo/BookCommitPath/<commit-hash> # Github uses 'commit', Bitbucket uses 'commits' # BookCommitPath = 'commit' + + # (Optional, default none) Set template for commit link for the page. Requires enableGitInfo. + # When set enabled 'Last Modified' and a link to the commit in the footer of the page. + # Param is executed as template using .Site, .Page and .GitInfo as context. + BookLastChangeLink = 'https://code.aethrvmn.gr/sites/site.git/commit/?id={{ .GitInfo.Hash }}' + # Enable "Edit this page" links for 'doc' page type. # Disabled by default. Uncomment to enable. Requires 'BookRepo' param. @@ -102,7 +108,7 @@ enableGitInfo = true # Configure the date format used on the pages # - In git information # - In blog posts - BookDateFormat = 'January 2, 2006' + BookDateFormat = 'Jan 2, 2006' # (Optional, default true) Enables search function with flexsearch, # Index is built on fly, therefore it might slowdown your website. |
