Skip to content

Commit

Permalink
add config from example site
Browse files Browse the repository at this point in the history
  • Loading branch information
wvictor14 committed May 21, 2024
1 parent c7b2ff6 commit e9abb84
Show file tree
Hide file tree
Showing 17 changed files with 375 additions and 151 deletions.
5 changes: 2 additions & 3 deletions config/_default/config.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
theme = "congo"
# -- Site Configuration --
# Refer to the theme docs for more details about each of these parameters.
# https://jpanther.github.io/congo/docs/getting-started/

# baseURL = "https://your_domain.com/"
theme = "congo"
defaultContentLanguage = "en"

enableRobotsTXT = true
paginate = 10
paginate = 15
summaryLength = 0

[outputs]
Expand Down
25 changes: 25 additions & 0 deletions config/_default/languages.de.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
languageCode = "de-DE"
languageName = "Deutsch (Deutschland)"
languageDirection = "ltr"
weight = 4

title = "Congo"
copyright = "© 2023 Congo contributors"

[params]
dateFormat = "2. January 2006"

mainSections = ["samples"]
description = "Ein leistungsstarkes, leichtgewichtiges Theme für Hugo, das mit Tailwind CSS erstellt wurde."

[params.author]
name = "Congo"
image = "img/author.jpg"
headline = "Nicht dein Durschnitts-Theme!"
bio = "Dies ist ein Beispiel für eine Autorenbiografie, und obwohl hier ein Stockfoto eines Hundes zu sehen ist, wurde dieser Artikel tatsächlich von einem Menschen verfasst. :dog:"
links = [
{ x-twitter = "https://twitter.com/" },
{ facebook = "https://facebook.com/" },
{ linkedin = "https://linkedin.com/" },
{ youtube = "https://youtube.com/" },
]
70 changes: 15 additions & 55 deletions config/_default/languages.en.toml
Original file line number Diff line number Diff line change
@@ -1,65 +1,25 @@
languageCode = "en"
languageName = "English"
languageCode = "en-AU"
languageName = "English (Australia)"
languageDirection = "ltr"
weight = 1

title = "Congo"
# copyright = "Copy, _right?_ :thinking_face:"
copyright = "© 2023 Congo contributors"

[params]
dateFormat = "2 January 2006"

# mainSections = ["section1", "section2"]
# description = "My awesome website"
mainSections = ["samples"]
description = "A powerful, lightweight theme for Hugo built with Tailwind CSS."

[params.author]
# name = "Your name here"
# image = "img/author.jpg"
# headline = "I'm only human"
# bio = "A little bit about you"
# links = [
# { email = "mailto:hello@your_domain.com" },
# { link = "https://link-to-some-website.com/" },
# { amazon = "https://www.amazon.com/hz/wishlist/ls/wishlist-id" },
# { apple = "https://www.apple.com" },
# { blogger = "https://username.blogspot.com/" },
# { codepen = "https://codepen.io/username" },
# { dev = "https://dev.to/username" },
# { discord = "https://discord.gg/invitecode" },
# { dribbble = "https://dribbble.com/username" },
# { facebook = "https://facebook.com/username" },
# { flickr = "https://www.flickr.com/photos/username/" },
# { foursquare = "https://foursquare.com/username" },
# { github = "https://github.com/username" },
# { gitlab = "https://gitlab.com/username" },
# { google = "https://www.google.com/" },
# { google-scholar = "https://scholar.google.com/citations?user=user-id" },
# { hashnode = "https://username.hashnode.dev" },
# { instagram = "https://instagram.com/username" },
# { keybase = "https://keybase.io/username" },
# { kickstarter = "https://www.kickstarter.com/profile/username" },
# { lastfm = "https://lastfm.com/user/username" },
# { linkedin = "https://linkedin.com/in/username" },
# { mastodon = "https://mastodon.instance/@username" },
# { medium = "https://medium.com/username" },
# { mendeley = "https://www.mendeley.com/" },
# { microsoft = "https://www.microsoft.com/" },
# { orcid = "https://orcid.org/userid" },
# { patreon = "https://www.patreon.com/username" },
# { pinterest = "https://pinterest.com/username" },
# { reddit = "https://reddit.com/user/username" },
# { researchgate = "https://www.researchgate.net/profile/username" },
# { slack = "https://workspace.url/team/userid" },
# { snapchat = "https://snapchat.com/add/username" },
# { soundcloud = "https://soundcloud.com/username" },
# { stack-overflow = "https://stackoverflow.com/users/userid/username" },
# { steam = "https://steamcommunity.com/profiles/userid" },
# { telegram = "https://t.me/username" },
# { threads = "https://threads.net/@username" },
# { tiktok = "https://tiktok.com/@username" },
# { tumblr = "https://username.tumblr.com" },
# { twitch = "https://twitch.tv/username" },
# { whatsapp = "https://wa.me/phone-number" },
# { x-twitter = "https://twitter.com/username" },
# { youtube = "https://youtube.com/username" },
# ]
name = "Congo"
image = "img/author.jpg"
headline = "Not your ordinary theme!"
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 = [
{ x-twitter = "https://twitter.com/" },
{ facebook = "https://facebook.com/" },
{ linkedin = "https://linkedin.com/" },
{ youtube = "https://youtube.com/" },
]
25 changes: 25 additions & 0 deletions config/_default/languages.es.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
languageCode = "es-MX"
languageName = "Español (México)"
languageDirection = "ltr"
weight = 2

title = "Congo"
copyright = "© 2023 Congo contributors"

[params]
dateFormat = "2 January 2006"

mainSections = ["samples"]
description = "Un tema poderoso y liviano para Hugo creado con Tailwind CSS."

[params.author]
name = "Congo"
image = "img/author.jpg"
headline = "¡No es tu tema ordinario!"
bio = "Esta es una biografía de autor de ejemplo, y aunque aquí hay una foto de un perro, este artículo en realidad fue creado por un ser humano. :dog:"
links = [
{ x-twitter = "https://twitter.com/" },
{ facebook = "https://facebook.com/" },
{ linkedin = "https://linkedin.com/" },
{ youtube = "https://youtube.com/" },
]
25 changes: 25 additions & 0 deletions config/_default/languages.ja.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
languageCode = "ja"
languageName = "日本語"
languageDirection = "ltr"
weight = 2

title = "Congo"
copyright = "© 2023 Congo contributors"

[params]
dateFormat = "2006年1月2日"

mainSections = ["samples"]
description = "Tailwind CSSをベースに開発された強力で軽量なHugo向けテーマ"

[params.author]
name = "Congo"
image = "img/author.jpg"
headline = "ただならぬテーマ!"
bio = "これは著者の経歴の例で、ここには犬の画像があるが、実際には人間が作成したものである。 :dog:"
links = [
{ x-twitter = "https://twitter.com/" },
{ facebook = "https://facebook.com/" },
{ linkedin = "https://linkedin.com/" },
{ youtube = "https://youtube.com/" },
]
20 changes: 0 additions & 20 deletions config/_default/languages.toml

This file was deleted.

25 changes: 25 additions & 0 deletions config/_default/languages.zh-CN.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
languageCode = "zh-CN"
languageName = "简体中文"
languageDirection = "ltr"
weight = 2

title = "Congo"
copyright = "© 2023 Congo contributors"

[params]
dateFormat = "2006年1月2日"

mainSections = ["samples"]
description = "一款基于Tailwindcss的强大且轻量的Hugo主题"

[params.author]
name = "Congo"
image = "img/author.jpg"
headline = "非凡的主题!"
bio = "这是一个作者简介示例,虽然这里有一张狗的库存照片,但实际上这篇文章是由人创建的。 :dog:"
links = [
{ x-twitter = "https://twitter.com/" },
{ facebook = "https://facebook.com/" },
{ linkedin = "https://linkedin.com/" },
{ youtube = "https://youtube.com/" },
]
2 changes: 1 addition & 1 deletion config/_default/markup.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@

[tableOfContents]
startLevel = 2
endLevel = 4
endLevel = 3
56 changes: 56 additions & 0 deletions config/_default/menus.de.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# -- 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 = "Dokumentation"
pageRef = "docs"
weight = 10

[[main]]
name = "Beispiele"
pageRef = "samples"
weight = 20

[[main]]
name = "Genutzt von"
pageRef = "users"
weight = 30

[[main]]
name = "GitHub"
url = "https://github.com/jpanther/congo"
weight = 40
[main.params]
icon = "github"
showName = false
target = "_blank"

[[main]]
identifier = "search"
weight = 99
[main.params]
action = "search"

[[main]]
identifier = "locale"
weight = 100
[main.params]
action = "locale"

# -- 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
21 changes: 15 additions & 6 deletions config/_default/menus.en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,29 @@
# ordered by weight from lowest to highest.

[[main]]
name = "Blog"
pageRef = "posts"
name = "Docs"
pageRef = "docs"
weight = 10

[[main]]
name = "Categories"
pageRef = "categories"
name = "Samples"
pageRef = "samples"
weight = 20

[[main]]
name = "Tags"
pageRef = "tags"
name = "Users"
pageRef = "users"
weight = 30

[[main]]
name = "GitHub"
url = "https://github.com/jpanther/congo"
weight = 40
[main.params]
icon = "github"
showName = false
target = "_blank"

[[main]]
identifier = "search"
weight = 99
Expand Down
56 changes: 56 additions & 0 deletions config/_default/menus.es.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# -- 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"
url = "/docs"
weight = 10

[[main]]
name = "Ejemplos"
pageRef = "samples"
weight = 20

[[main]]
name = "Usuarios"
pageRef = "users"
weight = 30

[[main]]
name = "GitHub"
url = "https://github.com/jpanther/congo"
weight = 40
[main.params]
icon = "github"
showName = false
target = "_blank"

[[main]]
identifier = "search"
weight = 99
[main.params]
action = "search"

[[main]]
identifier = "locale"
weight = 100
[main.params]
action = "locale"

# -- 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
Loading

0 comments on commit e9abb84

Please sign in to comment.