Theme fest ins Repo uebernehmen statt als Submodule
Ein normaler git clone holt Submodules nicht mit - geprueft: nach dem Klonen des Repos war themes/gokarna leer. Portainer klont ebenso, der Build im Container waere also an dem fehlenden Theme gescheitert. Gokarna liegt jetzt direkt im Repo, festgeschrieben auf Commit 8306042, den Stand, mit dem die Seite bisher gebaut wurde. .gitmodules entfaellt. Nachteil: Theme-Updates muessen kuenftig von Hand eingespielt werden. Dafuer baut das Repo aus jedem beliebigen Klon heraus, ohne Sonderbehandlung. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
102
themes/gokarna/exampleSite/hugo.toml
Normal file
102
themes/gokarna/exampleSite/hugo.toml
Normal file
@@ -0,0 +1,102 @@
|
||||
baseURL = "https://gokarna-hugo.netlify.app"
|
||||
defaultContentLanguage = "en"
|
||||
enableEmoji = true
|
||||
enableRobotsTXT = true
|
||||
languageCode = "en"
|
||||
# Choose one of emacs, trac or perldoc
|
||||
pygmentsStyle = "monokai"
|
||||
theme = "gokarna"
|
||||
title = "Gokarna"
|
||||
|
||||
[params]
|
||||
avatarAltText = "avatar"
|
||||
avatarSize = "size-m"
|
||||
avatarURL = "/images/avatar.webp"
|
||||
|
||||
customHeadHTML = """
|
||||
<!-- KaTeX -->
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.22/dist/katex.min.css" integrity="sha384-5TcZemv2l/9On385z///+d7MSYlvIEw9FuZTIdZ14vJLqWphw7e7ZPuOiCHJcFCP" crossorigin="anonymous">
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.22/dist/katex.min.js" integrity="sha384-cMkvdD8LoxVzGF/RPUKAcvmm49FQ0oxwDF3BGKtDXcEc+T1b2N+teh/OJfpU0jr6" crossorigin="anonymous"></script>
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.22/dist/contrib/auto-render.min.js" integrity="sha384-hCXGrW6PitJEwbkoStFjeJxv+fSOOQKOPbJxSfM6G5sWZjAyWhXiTIIAmQqnlLlh" crossorigin="anonymous"></script>
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
renderMathInElement(document.body, {
|
||||
// customised options
|
||||
// • auto-render specific keys, e.g.:
|
||||
delimiters: [
|
||||
{left: '$$', right: '$$', display: true},
|
||||
{left: '$', right: '$', display: false},
|
||||
],
|
||||
// • rendering keys, e.g.:
|
||||
throwOnError : false
|
||||
});
|
||||
});
|
||||
</script>
|
||||
"""
|
||||
|
||||
description = "Sky above, sand below and peace within"
|
||||
footer = "The Marauders"
|
||||
metaKeywords = ["blog", "gokarna", "hugo"]
|
||||
showBackToTopButton = true # true or false for "back to top" button on posts and pages
|
||||
|
||||
socialIcons = [
|
||||
{name = "twitter", url = "https://example.com"},
|
||||
{name = "linkedin", url = "https://example.com"},
|
||||
{name = "stackoverflow", url = "https://example.com"},
|
||||
{name = "dribbble", url = "https://example.com"},
|
||||
{name = "instagram", url = "https://example.com"},
|
||||
{name = "twitch", url = "https://example.com"},
|
||||
{name = "email", url = "mailto:example@example.com"}
|
||||
]
|
||||
|
||||
[menu]
|
||||
[[menu.main]]
|
||||
name = "Home"
|
||||
pre = "<span data-feather='home'></span>"
|
||||
url = "/"
|
||||
weight = 1
|
||||
|
||||
[[menu.main]]
|
||||
name = "Posts"
|
||||
pre = "<span data-feather='book'></span>"
|
||||
url = "/posts/"
|
||||
weight = 2
|
||||
|
||||
[[menu.main]]
|
||||
name = "Projects"
|
||||
pre = "<span data-feather='code'></span>"
|
||||
url = "/projects/"
|
||||
weight = 3
|
||||
|
||||
[[menu.main]]
|
||||
name = "Tags"
|
||||
pre = "<span data-feather='tag'></span>"
|
||||
url = "/tags/"
|
||||
weight = 4
|
||||
|
||||
[[menu.main]]
|
||||
identifier = "github"
|
||||
pre = "<span data-feather='github'></span>"
|
||||
url = "https://github.com/gokarna-theme/gokarna-hugo"
|
||||
weight = 5
|
||||
|
||||
[[menu.main]]
|
||||
identifier = "buymeacoffee"
|
||||
pre = "<span data-feather='coffee'></span>"
|
||||
url = "https://www.buymeacoffee.com/avijitgupta"
|
||||
weight = 6
|
||||
|
||||
[[menu.main]]
|
||||
identifier = "rss"
|
||||
pre = "<span data-feather='rss'></span>"
|
||||
url = "/index.xml"
|
||||
weight = 7
|
||||
|
||||
[markup]
|
||||
[markup.tableOfContents]
|
||||
startLevel = 1
|
||||
endLevel = 4
|
||||
ordered = false
|
||||
|
||||
[minify]
|
||||
minifyOutput = true
|
||||
Reference in New Issue
Block a user