From 9b5f3fad7068298265dbbc8a65077f7917a090a5 Mon Sep 17 00:00:00 2001 From: aethrvmn Date: Sun, 21 Sep 2025 00:27:35 +0200 Subject: updated hugo-book theme --- hugo.toml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'hugo.toml') diff --git a/hugo.toml b/hugo.toml index a97f739..1901d75 100644 --- a/hugo.toml +++ b/hugo.toml @@ -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/ # 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. -- cgit v1.2.3