diff --git a/.gitmodules b/.gitmodules index 89af1b0..1da2c4d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/config/_default/languages.de.toml b/config/_default/languages.de.toml new file mode 100644 index 0000000..50d0e36 --- /dev/null +++ b/config/_default/languages.de.toml @@ -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 diff --git a/config/_default/languages.en.toml b/config/_default/languages.en.toml new file mode 100644 index 0000000..d1b6c14 --- /dev/null +++ b/config/_default/languages.en.toml @@ -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 diff --git a/config/_default/params.toml b/config/_default/params.toml new file mode 100644 index 0000000..436bd15 --- /dev/null +++ b/config/_default/params.toml @@ -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 diff --git a/hugo.toml b/hugo.toml index cb0cdd5..d9d8941 100644 --- a/hugo.toml +++ b/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" diff --git a/layouts/_partials/functions/warnings.html b/layouts/_partials/functions/warnings.html new file mode 100644 index 0000000..d7cb617 --- /dev/null +++ b/layouts/_partials/functions/warnings.html @@ -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 }} diff --git a/layouts/partials/extend_footer.html b/layouts/partials/extend-footer.html similarity index 100% rename from layouts/partials/extend_footer.html rename to layouts/partials/extend-footer.html diff --git a/layouts/partials/extend_head.html b/layouts/partials/extend-head.html similarity index 100% rename from layouts/partials/extend_head.html rename to layouts/partials/extend-head.html diff --git a/themes/PaperMod b/themes/PaperMod deleted file mode 160000 index 10d3dcc..0000000 --- a/themes/PaperMod +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 10d3dcc0e05cee0aaca58a1305a9d824b2cf9a2a diff --git a/themes/congo b/themes/congo new file mode 160000 index 0000000..b426bf9 --- /dev/null +++ b/themes/congo @@ -0,0 +1 @@ +Subproject commit b426bf91b0a90edbb4063bf4efd463536a1f99fe