Update to theme anake v2 and use it as hugo module instead of git submodule
This commit is contained in:
parent
615966247f
commit
e7525403dd
8 changed files with 55 additions and 33 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
|
@ -1,3 +0,0 @@
|
|||
[submodule "themes/ananke"]
|
||||
path = themes/ananke
|
||||
url = https://github.com/theNewDynamic/gohugo-theme-ananke.git
|
||||
|
|
@ -3,7 +3,14 @@
|
|||
## Setup
|
||||
|
||||
```console
|
||||
$ git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke
|
||||
$ hugo mod init codeberg.org/sr-rolando/sr-rolando.com
|
||||
& hugo mod tidy
|
||||
```
|
||||
|
||||
In `hugo.toml`:
|
||||
|
||||
```toml
|
||||
theme = ["github.com/theNewDynamic/gohugo-theme-ananke/v2"]
|
||||
```
|
||||
|
||||
`make`-Targets:
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
title: "Señor Rolando"
|
||||
|
||||
description: "Lesender Läufer."
|
||||
cascade:
|
||||
featured_image: '/image/default-hero-image-objects-d-art.jpg'
|
||||
|
|
|
|||
5
go.mod
Normal file
5
go.mod
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
module codeberg.org/sr-rolando/sr-rolando.com
|
||||
|
||||
go 1.23.2
|
||||
|
||||
require github.com/theNewDynamic/gohugo-theme-ananke/v2 v2.11.2 // indirect
|
||||
2
go.sum
Normal file
2
go.sum
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
github.com/theNewDynamic/gohugo-theme-ananke/v2 v2.11.2 h1:e57wIClfYebSg7lqJ6ZBbsPaOO+qYEUuqzKbOCwSMqA=
|
||||
github.com/theNewDynamic/gohugo-theme-ananke/v2 v2.11.2/go.mod h1:PiXJyylwvAMIfDiHY0SlP8fDwGHhq3ocwbP4TiuAevo=
|
||||
65
hugo.toml
65
hugo.toml
|
|
@ -2,15 +2,19 @@ title = "Señor Rolando"
|
|||
subtitle = "Lesender Läufer."
|
||||
baseURL = "https://sr-rolando.com"
|
||||
languageCode = "de-de"
|
||||
theme = "ananke"
|
||||
theme = ["github.com/theNewDynamic/gohugo-theme-ananke/v2"]
|
||||
resourceDir = "../resources"
|
||||
|
||||
DefaultContentLanguage = "de"
|
||||
SectionPagesMenu = "no-default" # Prevent the automatic Hugo menu
|
||||
Paginate = 10
|
||||
# googleAnalytics = ""
|
||||
defaultContentLanguage = "de"
|
||||
sectionPagesMenu = "no-default" # Prevent the automatic Hugo menu
|
||||
enableRobotsTXT = true
|
||||
|
||||
[services.googleAnalytics]
|
||||
id = ''
|
||||
|
||||
[pagination]
|
||||
pagerSize = 10
|
||||
|
||||
[sitemap]
|
||||
changefreq = "monthly"
|
||||
priority = 0.5
|
||||
|
|
@ -19,14 +23,17 @@ filename = "sitemap.xml"
|
|||
[params]
|
||||
text_color = ""
|
||||
author = ""
|
||||
# favicon = ""
|
||||
site_logo = ""
|
||||
description = "Lesender Läufer."
|
||||
# Hero on start page. Choose a background color from any on this page: https://tachyons.io/docs/themes/skins/ and preface it with "bg-"
|
||||
background_color_class = "bg-dark-gray"
|
||||
# choose fitting and alignment styles for the featured image using Tachyons classes such as "cover|contain" for fitting and "bg-top|bg-center|bg-bottom" for alignment, or add any other class space-separated to customize further
|
||||
featured_image_class = "cover bg-top"
|
||||
# choose a color dimming class for the page or site header from any on this page: https://tachyons.io/docs/themes/skins/, preface it with "bg-" and add the value such as "-X0" where X is in [1,9]
|
||||
cover_dimming_class = "bg-black-60"
|
||||
recent_posts_number = 3
|
||||
mainSections = ["post","posts"]
|
||||
logo = "img/avatar-icon.png" # Expecting square dimensions
|
||||
# mainSections = ["post", "posts"]
|
||||
logo = "img/avatar-icon.png" # Expecting square dimensions
|
||||
favicon = "/image/favicon.ico"
|
||||
dateFormat = "2. January 2006"
|
||||
commit = false
|
||||
|
|
@ -38,16 +45,16 @@ comments = false
|
|||
readingTime = true
|
||||
wordCount = true
|
||||
useHLJS = true
|
||||
socialShare = false # Don't add share buttons on posts
|
||||
delayDisqus = true
|
||||
socialShare = false # Don't add share buttons on posts
|
||||
delayDisqus = false
|
||||
showRelatedPosts = true
|
||||
# hideAuthor = true
|
||||
|
||||
[permalinks]
|
||||
[permalinks.page]
|
||||
post = '/:year/:month/:slug/'
|
||||
[permalinks.section]
|
||||
post = '/posts/'
|
||||
[permalinks.page]
|
||||
post = '/:year/:month/:slug/'
|
||||
[permalinks.section]
|
||||
post = '/posts/'
|
||||
|
||||
[Author]
|
||||
# Set only your "username" for default hosts and full URLs otherwise (e.g., "https://MyGitLab.org/username")
|
||||
|
|
@ -55,30 +62,36 @@ name = "Señor Rolando"
|
|||
website = "sr-rolando.com"
|
||||
# email = "web@sr-rolando.com"
|
||||
|
||||
[[params.ananke_socials]]
|
||||
name = "mastodon"
|
||||
url = "https://fnordon.de/@sr_rolando/"
|
||||
rel = "me noopener"
|
||||
[params.ananke.social.follow]
|
||||
new_window_icon = true
|
||||
# Options: ["bluesky", "mastodon", "rss"]
|
||||
networks = ["mastodon", "rss"]
|
||||
|
||||
[[params.ananke_socials]]
|
||||
[params.ananke.social.bluesky]
|
||||
profilelink = "https://bsky.app/profile/sr-rolando.bsky.social"
|
||||
|
||||
[params.ananke.social.mastodon]
|
||||
profileLink = "https://fnordon.de/@sr_rolando/"
|
||||
|
||||
[params.ananke.social.rss]
|
||||
name = "rss"
|
||||
url = "/index.xml"
|
||||
|
||||
# No icon for Strava in Ananke for now
|
||||
# Doc for adding: https://github.com/theNewDynamic/gohugo-theme-ananke#social-icons-customization
|
||||
# [[params.ananke_socials]]
|
||||
# [params.ananke.social.strava]
|
||||
# name = "strava"
|
||||
# url = "https://www.strava.com/athletes/8075985"
|
||||
|
||||
[[menu.main]]
|
||||
name = "Texte"
|
||||
url = "/book"
|
||||
weight = 1
|
||||
name = "Texte"
|
||||
url = "/book"
|
||||
weight = 1
|
||||
|
||||
[[menu.main]]
|
||||
name = "Läufe"
|
||||
url = "/laeufer"
|
||||
weight = 2
|
||||
name = "Läufe"
|
||||
url = "/laeufer"
|
||||
weight = 2
|
||||
|
||||
# Allow raw html div to be used. Mainly for posts imported from Wordpress.
|
||||
[markup.goldmark.renderer]
|
||||
|
|
|
|||
|
|
@ -5,6 +5,6 @@
|
|||
</a>
|
||||
<a class="f4 hover-white no-underline white-70 dib-ns" href="/impressum">Impressum</a>
|
||||
<a class="f4 hover-white no-underline white-70 dib-ns" href="/datenschutz">Datenschutz</a>
|
||||
<div>{{ partial "social-follow.html" . }}</div>
|
||||
<div>{{ partial "social/follow.html" . }}</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 33178c0d498edb18634bfe0f906ca191796ce307
|
||||
Loading…
Add table
Add a link
Reference in a new issue