feat: switch from PaperMod to Congo theme
- Warm avocado color scheme, light mode default — friendly for families
- Congo language configs in config/_default/languages.{en,de}.toml
- Renamed extend partials to Congo convention (hyphens)
- Override warnings.html for Hugo 0.159 compatibility (.Author removed)
- All shortcodes and custom partials preserved
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
6
.gitmodules
vendored
6
.gitmodules
vendored
@@ -1,3 +1,3 @@
|
||||
[submodule "themes/PaperMod"]
|
||||
path = themes/PaperMod
|
||||
url = https://github.com/adityatelange/hugo-PaperMod.git
|
||||
[submodule "themes/congo"]
|
||||
path = themes/congo
|
||||
url = https://github.com/jpanther/congo.git
|
||||
|
||||
26
config/_default/languages.de.toml
Normal file
26
config/_default/languages.de.toml
Normal file
@@ -0,0 +1,26 @@
|
||||
languageCode = "de"
|
||||
languageName = "Deutsch"
|
||||
languageDirection = "ltr"
|
||||
weight = 2
|
||||
|
||||
title = "Internet für Kinder"
|
||||
|
||||
[params]
|
||||
description = "Experteneinblicke zu Kinderschutzgesetzen, Online-Sicherheit und digitalem Familienschutz weltweit."
|
||||
|
||||
[params.author]
|
||||
name = "Agiliton"
|
||||
headline = "Kinder online schützen"
|
||||
bio = "Experteneinblicke zu Kinderschutzgesetzen, Online-Sicherheit und digitalem Familienschutz weltweit."
|
||||
|
||||
[[menus.main]]
|
||||
identifier = "about"
|
||||
name = "Über uns"
|
||||
url = "/about/"
|
||||
weight = 2
|
||||
|
||||
[[menus.main]]
|
||||
identifier = "tags"
|
||||
name = "Themen"
|
||||
url = "/tags/"
|
||||
weight = 3
|
||||
26
config/_default/languages.en.toml
Normal file
26
config/_default/languages.en.toml
Normal file
@@ -0,0 +1,26 @@
|
||||
languageCode = "en"
|
||||
languageName = "English"
|
||||
languageDirection = "ltr"
|
||||
weight = 1
|
||||
|
||||
title = "Internet for Kids"
|
||||
|
||||
[params]
|
||||
description = "Expert insights on child protection laws, online safety, and digital family protection worldwide."
|
||||
|
||||
[params.author]
|
||||
name = "Agiliton"
|
||||
headline = "Protecting Kids Online"
|
||||
bio = "Expert insights on child protection laws, online safety, and digital family protection worldwide."
|
||||
|
||||
[[menus.main]]
|
||||
identifier = "about"
|
||||
name = "About"
|
||||
url = "/about/"
|
||||
weight = 2
|
||||
|
||||
[[menus.main]]
|
||||
identifier = "tags"
|
||||
name = "Topics"
|
||||
url = "/tags/"
|
||||
weight = 3
|
||||
18
config/_default/params.toml
Normal file
18
config/_default/params.toml
Normal file
@@ -0,0 +1,18 @@
|
||||
colorScheme = "avocado"
|
||||
defaultAppearance = "light"
|
||||
autoSwitchAppearance = false
|
||||
|
||||
[homepage]
|
||||
layout = "page"
|
||||
showRecent = true
|
||||
recentLimit = 5
|
||||
|
||||
[article]
|
||||
showDate = true
|
||||
showReadingTime = true
|
||||
showAuthor = true
|
||||
showBreadcrumbs = true
|
||||
showTableOfContents = true
|
||||
|
||||
[list]
|
||||
showBreadcrumbs = true
|
||||
72
hugo.toml
72
hugo.toml
@@ -1,6 +1,6 @@
|
||||
baseURL = "https://internetforkids.ong/"
|
||||
title = "Internet for Kids"
|
||||
theme = "PaperMod"
|
||||
theme = "congo"
|
||||
|
||||
defaultContentLanguage = "en"
|
||||
defaultContentLanguageInSubdir = true
|
||||
@@ -23,80 +23,10 @@ enableRobotsTXT = true
|
||||
section = ["HTML", "RSS"]
|
||||
|
||||
[params]
|
||||
description = "Expert insights on child protection laws, online safety, and digital family protection worldwide."
|
||||
favicon = "/favicon.ico"
|
||||
author = "Agiliton"
|
||||
ShowReadingTime = true
|
||||
ShowShareButtons = true
|
||||
ShowPostNavLinks = true
|
||||
ShowBreadCrumbs = true
|
||||
ShowCodeCopyButtons = true
|
||||
defaultTheme = "auto"
|
||||
# Rybbit Analytics
|
||||
rybbit_site_id = "a0ab05916d6c"
|
||||
rybbit_url = "https://analytics.clicksports.de"
|
||||
|
||||
[params.homeInfoParams]
|
||||
Title = "Protecting Kids Online"
|
||||
Content = "Expert insights on child protection laws, online safety, and digital family protection worldwide."
|
||||
|
||||
[[params.socialIcons]]
|
||||
name = "rss"
|
||||
url = "/index.xml"
|
||||
|
||||
[languages]
|
||||
[languages.en]
|
||||
languageName = "English"
|
||||
weight = 1
|
||||
title = "Internet for Kids"
|
||||
contentDir = "content/en"
|
||||
[languages.en.params]
|
||||
description = "Expert insights on child protection laws, online safety, and digital family protection worldwide."
|
||||
[languages.en.params.homeInfoParams]
|
||||
Title = "Protecting Kids Online"
|
||||
Content = "Expert insights on child protection laws, online safety, and digital family protection worldwide."
|
||||
[[languages.en.menus.main]]
|
||||
identifier = "about"
|
||||
name = "About"
|
||||
url = "/about/"
|
||||
weight = 2
|
||||
[[languages.en.menus.main]]
|
||||
identifier = "tags"
|
||||
name = "Topics"
|
||||
url = "/tags/"
|
||||
weight = 3
|
||||
[[languages.en.menus.main]]
|
||||
identifier = "search"
|
||||
name = "Search"
|
||||
url = "/search/"
|
||||
weight = 4
|
||||
|
||||
[languages.de]
|
||||
languageName = "Deutsch"
|
||||
weight = 2
|
||||
title = "Internet für Kinder"
|
||||
contentDir = "content/de"
|
||||
[languages.de.params]
|
||||
description = "Experteneinblicke zu Kinderschutzgesetzen, Online-Sicherheit und digitalem Familienschutz weltweit."
|
||||
[languages.de.params.homeInfoParams]
|
||||
Title = "Kinder online schützen"
|
||||
Content = "Experteneinblicke zu Kinderschutzgesetzen, Online-Sicherheit und digitalem Familienschutz weltweit."
|
||||
[[languages.de.menus.main]]
|
||||
identifier = "about"
|
||||
name = "Über uns"
|
||||
url = "/about/"
|
||||
weight = 2
|
||||
[[languages.de.menus.main]]
|
||||
identifier = "tags"
|
||||
name = "Themen"
|
||||
url = "/tags/"
|
||||
weight = 3
|
||||
[[languages.de.menus.main]]
|
||||
identifier = "search"
|
||||
name = "Suche"
|
||||
url = "/search/"
|
||||
weight = 4
|
||||
|
||||
[taxonomies]
|
||||
tag = "tags"
|
||||
category = "categories"
|
||||
|
||||
9
layouts/_partials/functions/warnings.html
Normal file
9
layouts/_partials/functions/warnings.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{{ if ne .Params.showAppearanceSwitcher nil }}
|
||||
{{ warnf "[CONGO] Theme parameter `showAppearanceSwitcher` has been renamed to `footer.showAppearanceSwitcher`. Please update your site configuration." }}
|
||||
{{ end }}
|
||||
{{ if ne .Params.showScrollToTop nil }}
|
||||
{{ warnf "[CONGO] Theme parameter `showScrollToTop` has been renamed to `footer.showScrollToTop`. Please update your site configuration." }}
|
||||
{{ end }}
|
||||
{{ if ne .Params.logo nil }}
|
||||
{{ warnf "[CONGO] Theme parameter `logo` has been renamed to `header.logo`. Please update your site configuration." }}
|
||||
{{ end }}
|
||||
Submodule themes/PaperMod deleted from 10d3dcc0e0
1
themes/congo
Submodule
1
themes/congo
Submodule
Submodule themes/congo added at b426bf91b0
Reference in New Issue
Block a user