🌐 Restructure config for multilingual support

This commit is contained in:
James Panther
2022-01-11 10:02:51 +11:00
parent e67b9774d6
commit fe90990e10
12 changed files with 226 additions and 119 deletions
-71
View File
@@ -1,71 +0,0 @@
# Site configuration for the Congo demo site
# --------------------------------------------------------------------------
# IMPORTANT: You should not use this file as a template for configuration
# as it does not contain all the required theme settings!
#
# Refer to the theme docs for configuration instructions if you're unsure.
# https://jpanther.github.io/congo/docs/
# --------------------------------------------------------------------------
theme = "congo"
languageCode = "en-AU"
defaultContentLanguage = "en"
title = "Congo"
enableEmoji = true
summaryLength = 0
[author]
name = "Congo"
image = "img/author.jpg"
bio = "This is an example author bio, and although there's a stock photo of a dog here, this article was actually created by a human. :dog:"
links = [
{ twitter = "https://twitter.com/" },
{ facebook = "https://facebook.com/" },
{ linkedin = "https://linkedin.com/" },
{ youtube = "https://youtube.com/" },
]
[taxonomies]
tag = "tags"
[params]
# logo = "logo.jpg"
[params.homepage]
layout = "custom"
showRecent = true
mainSections = ["samples"]
[params.list]
groupByYear = false
showBreadcrumbs = true
[params.article]
showBreadcrumbs = true
showEdit = true
editURL = "https://github.com/jpanther/congo/tree/dev/exampleSite/content/"
editAppendPath = true
[[menu.main]]
name = "Docs"
pageRef = "docs"
weight = 10
[[menu.main]]
name = "Samples"
pageRef = "samples"
weight = 20
[[menu.main]]
name = "Users"
pageRef = "users"
weight = 30
[[menu.main]]
name = "GitHub"
url = "https://github.com/jpanther/congo"
weight = 40
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true
[markup.highlight]
noClasses = false
+11
View File
@@ -0,0 +1,11 @@
# -- Site Configuration --
# Refer to the theme docs for more details about each of these parameters.
# https://jpanther.github.io/congo/docs/getting-started/
theme = "congo"
defaultContentLanguage = "en-au"
enableEmoji = true
enableRobotsTXT = true
summaryLength = 0
@@ -0,0 +1,17 @@
languageCode = "en-AU"
languageName = "English (Australia)"
weight = 1
title = "Congo :flag-au:"
# copyright = "Copy, _right?_ :thinking_face:"
[author]
name = "Congo"
image = "img/author.jpg"
bio = "This is an example author bio, and although there's a stock photo of a dog here, this article was actually created by a human. :dog:"
links = [
{ twitter = "https://twitter.com/" },
{ facebook = "https://facebook.com/" },
{ linkedin = "https://linkedin.com/" },
{ youtube = "https://youtube.com/" },
]
+9
View File
@@ -0,0 +1,9 @@
# -- Markup --
# These settings are required for the theme to function.
[goldmark]
[goldmark.renderer]
unsafe = true
[highlight]
noClasses = false
@@ -0,0 +1,41 @@
# -- Main Menu --
# The main menu is displayed in the header at the top of the page.
# Acceptable parameters are name, pageRef, page, url, title, weight.
#
# The simplest menu configuration is to provide:
# name = The name to be displayed for this menu link
# pageRef = The identifier of the page or section to link to
#
# By default the menu is ordered alphabetically. This can be
# overridden by providing a weight value. The menu will then be
# ordered by weight from lowest to highest.
[[main]]
name = "Docs"
pageRef = "docs"
weight = 10
[[main]]
name = "Samples"
pageRef = "samples"
weight = 20
[[main]]
name = "Users"
pageRef = "users"
weight = 30
[[main]]
name = "GitHub"
url = "https://github.com/jpanther/congo"
weight = 40
# -- Footer Menu --
# The footer menu is displayed at the bottom of the page, just before
# the copyright notice. Configure as per the main menu above.
# [[footer]]
# name = "Tags"
# pageRef = "tags"
# weight = 10
+3
View File
@@ -0,0 +1,3 @@
[hugoVersion]
extended = false
min = "0.86.1"
+54
View File
@@ -0,0 +1,54 @@
# -- Theme Options --
# These options control how the theme functions and allow you to
# customise the display of your website.
#
# Refer to the theme docs for more details about each of these parameters.
# https://jpanther.github.io/congo/docs/configuration/#theme-parameters
colorScheme = "congo"
# darkMode = "auto"
# darkToggle = false
# logo = "img/logo.jpg"
# description = "My awesome website"
mainSections = ["samples"]
# robots = ""
[homepage]
layout = "custom" # valid options: page, profile, custom
showRecent = true
[article]
showDate = true
dateFormat = "2 January 2006"
showAuthor = true
showBreadcrumbs = false
showDraftLabel = true
showEdit = true
editURL = "https://github.com/jpanther/congo/tree/dev/exampleSite/content/"
editAppendPath = true
showHeadingAnchors = true
showPagination = true
showReadingTime = true
showWordCount = false
# sharingLinks = ["facebook", "twitter", "pinterest", "reddit", "linkedin", "email"]
[list]
showBreadcrumbs = true
showSummary = false
groupByYear = false
[taxonomy]
showTermCount = true
[sitemap]
excludedKinds = ["taxonomy", "term"]
[fathomAnalytics]
# site = "ABC12345"
# domain = "llama.yoursite.com"
[verification]
# google = ""
# bing = ""
# pinterest = ""
# yandex = ""
@@ -0,0 +1 @@
tag = "tags"