Install toha theme as Hugo module

This commit is contained in:
Señor Rolando 2024-10-13 18:05:26 +02:00
parent 25f687cf68
commit 0775055bc0
6 changed files with 118 additions and 27 deletions

111
hugo.toml
View file

@ -1,15 +1,51 @@
baseURL = 'https://rolandjesse.de/'
languageCode = 'de-DE'
title = 'Roland Jesse'
author = 'Roland Jesse'
keywords = 'personal homepage'
theme = 'toha'
DefaultContentLanguage = 'de'
baseURL = "https://rolandjesse.de/"
languageCode = "de"
defaultContentLanguage = "de"
title = "Roland Jesse"
author = "Roland Jesse"
keywords = "personal homepage"
# Enable global emoji support
enableEmoji = true
# Use toha thema as Hugo module
[[module.imports]]
path = "github.com/hugo-toha/toha/v4"
[[module.mounts]]
source = "static/files"
target = "static/files"
[[module.mounts]]
source = "./node_modules/flag-icon-css/flags"
target = "static/flags"
[[module.mounts]]
source = "./node_modules/@fontsource/mulish/files"
target = "static/files"
[[module.mounts]]
source = "./node_modules/katex/dist/fonts"
target = "static/fonts"
[languages.de]
languageCode = "de"
languageName = "Deutsch"
title = "Roland Jesse"
weight = 1
[languages.en]
languageCode = "en"
languageName = "English"
title = "Roland Jesse"
weight = 2
[languages.es]
languageCode = "es"
languageName = "Español"
title = "Rolando Jesse"
weight = 3
# Allow raw html in markdown file
[markup.goldmark.renderer]
unsafe = true
@ -28,15 +64,6 @@ home = [ "HTML", "RSS", "JSON" ]
[params]
background = "/images/background.jpg"
# specify whether you want to show Table of Contents in reading page
enableTOC = false
# Show tags under the post title
enableTags = false
# Specify whether to show flag in the language selector. Default is true.
showFlags = false
# Provide logos for your site. The inverted logo will be used in the initial
# transparent navbar and the main logo will be used in the non-transparent navbar.
[params.logo]
@ -48,13 +75,18 @@ showFlags = false
[params.topNavbar]
maxVisibleSections = 5
# Enable dark theme
[params.darkMode]
provider = "darkreader"
enable = true
default = "system"
[params.features.theme]
enable = true
# Configure various features of the toha theme
[params.features.theme.services]
light = true
dark = true
default = "system"
[params.features.darkMode]
enabled = true
[params.features.portfolio]
enable = true
@ -79,10 +111,43 @@ showFlags = false
[params.features.analytics]
enabled = false
# specify whether you want to show Table of Contents in reading page
[params.features.toc]
enable = false
[params.features.tags]
enable = false
on_card = false
# Specify whether to show flag in the language selector. Default is true.
[params.features.flags]
enable = false
[params.features.embedpdf]
enable = false
[params.features.flowchart]
enable = false
[params.features.math]
enable = false
[params.features.syntaxHighlight]
enable = true
[params.features.syntaxHighlight.services.hljs]
noHighlightRe = "/^no-highlight$/i"
[params.features.readingTime]
enable = false
[params.features.pagination]
maxPostsPerPage = 12
# Provide footer configuration.
[params.footer]
enable = false
# You can provide your custom footer template using this option.
# If enabled, you can provide your custom footer template using this option.
# Put your template in "layouts/partials" folder of your repo.
template = "footer.html"