summaryrefslogtreecommitdiff
path: root/hugo.toml
diff options
context:
space:
mode:
authoraethrvmn <me@aethrvmn.gr>2025-09-20 22:27:35 +0000
committeraethrvmn <me@aethrvmn.gr>2025-09-20 22:27:35 +0000
commit9b5f3fad7068298265dbbc8a65077f7917a090a5 (patch)
tree0905b29eb7c03d6bc6e16dd1ebcd1ec9b6b83320 /hugo.toml
parentsuper simple setup guide (diff)
updated hugo-book theme
Diffstat (limited to 'hugo.toml')
-rw-r--r--hugo.toml10
1 files changed, 8 insertions, 2 deletions
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/<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.
Directive (EU) 2019/790, Article 4(3); all rights regarding Text and Data Mining (TDM) are reserved.