Compare commits

..

21 Commits

Author SHA1 Message Date
Wen Junhua e2d77847b4
Merge 8a8ae76bf2 into e615de3755 2023-11-25 04:51:27 +00:00
Wen Junhua 8a8ae76bf2 docs: update author docs 2023-11-25 12:51:22 +08:00
Wen Junhua 4b3d31eff3 fix: move param under languages.xx.toml params.author 2023-11-25 12:29:10 +08:00
James Panther e615de3755
🔨 Preparing release v2.7.5 2023-11-25 15:25:37 +11:00
James Panther cd675cfc55
Merge branch 'dev' of github.com:jpanther/congo into dev 2023-11-25 15:22:53 +11:00
James Panther 088b21795c
📝 Update changelog 2023-11-25 15:22:50 +11:00
James Panther ed0408da33
🔀 Merge pull request #699 from tomy0000000/dev
🛠 fix: Empty block when locale switcher is hidden (#678)
2023-11-25 14:47:02 +11:00
James Panther e9a69ec8e0
🔀 Merge pull request #714 from sorairolake/remove-execute-permission
Remove unnecessary execute permissions
2023-11-25 14:43:16 +11:00
James Panther 090de56037
📝 Update translation docs 2023-11-25 14:42:37 +11:00
James Panther b6a532c22f
🚚 Remove sub-variant from Bulgarian translation 2023-11-25 14:37:35 +11:00
James Panther 7c9fe0ef6f
🔀 Merge pull request #718 from MrEddX/MrEddX-bulgarian
🌐 Added Bulgarian Language
2023-11-25 14:36:43 +11:00
James Panther a968a781df
🔀 Merge pull request #703 from archdron/dev
Add Ukrainian Localization
2023-11-25 14:31:10 +11:00
James Panther 515d7bcad2
🔀 Merge pull request #696 from metbril/fix-nl
Fix typo in Dutch translation
2023-11-25 14:29:06 +11:00
James Panther e92f8e55fb
🔀 Merge pull request #697 from jpanther/dependabot/npm_and_yarn/mermaid-10.6.1
📌 Bump mermaid from 10.6.0 to 10.6.1
2023-11-25 14:27:02 +11:00
dependabot[bot] ca67e579a9 📦 Update packaged Mermaid 2023-11-25 03:25:03 +00:00
dependabot[bot] 99c45443cf
📌 Bump mermaid from 10.6.0 to 10.6.1
Bumps [mermaid](https://github.com/mermaid-js/mermaid) from 10.6.0 to 10.6.1.
- [Release notes](https://github.com/mermaid-js/mermaid/releases)
- [Changelog](https://github.com/mermaid-js/mermaid/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/mermaid-js/mermaid/compare/v10.6.0...v10.6.1)

---
updated-dependencies:
- dependency-name: mermaid
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-25 03:24:44 +00:00
MrEddX 56c7c9a466
Create bg-BG.yaml
Added: Bulgarian Language
2023-11-24 22:36:33 +02:00
Shun Sakai ef51b7c6de Remove unnecessary execute permissions 2023-11-21 11:07:11 +09:00
Andrii Serbovets 1e5a789156 Add Ukrainian Localization
- initial Ukrainian localization
- the “few” and “many” forms added as appropriate
2023-11-10 20:06:26 +02:00
Tomy Hsieh 0109db6173
🛠 fix: Empty block when locale switcher is hidden (#678) 2023-11-08 16:49:08 -05:00
Robert van Bregt 0cfab5dabb Fix typo 2023-11-06 19:17:06 +01:00
63 changed files with 283 additions and 110 deletions

View File

@ -6,6 +6,23 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
## [Unreleased] ## [Unreleased]
## [2.7.5] - 2023-11-25
### Added
- Ukrainian translation ([#703](https://github.com/jpanther/congo/pull/703))
- Bulgarian translation ([#718](https://github.com/jpanther/congo/pull/718))
### Changed
- Updated Dutch translation ([#696](https://github.com/jpanther/congo/pull/696))
- Upgrade to Mermaid v10.6.1 ([#697](https://github.com/jpanther/congo/pull/697))
### Fixed
- Some files have unnecessary execute permissions ([#714](https://github.com/jpanther/congo/pull/714))
- Empty block is output when locale switcher is hidden ([#699](https://github.com/jpanther/congo/pull/699))
## [2.7.4] - 2023-11-05 ## [2.7.4] - 2023-11-05
### Fixed ### Fixed
@ -780,7 +797,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Advanced customisation using simple Tailwind colour definitions and styles - Advanced customisation using simple Tailwind colour definitions and styles
- Fully documented - Fully documented
[Unreleased]: https://github.com/jpanther/congo/compare/v2.7.4...HEAD [Unreleased]: https://github.com/jpanther/congo/compare/v2.7.5...HEAD
[2.7.5]: https://github.com/jpanther/congo/compare/v2.7.4...v2.7.5
[2.7.4]: https://github.com/jpanther/congo/compare/v2.7.3...v2.7.4 [2.7.4]: https://github.com/jpanther/congo/compare/v2.7.3...v2.7.4
[2.7.3]: https://github.com/jpanther/congo/compare/v2.7.2...v2.7.3 [2.7.3]: https://github.com/jpanther/congo/compare/v2.7.2...v2.7.3
[2.7.2]: https://github.com/jpanther/congo/compare/v2.7.1...v2.7.2 [2.7.2]: https://github.com/jpanther/congo/compare/v2.7.1...v2.7.2

View File

@ -1,4 +1,4 @@
/*! Congo v2.7.4 | MIT License | https://github.com/jpanther/congo */ /*! Congo v2.7.5 | MIT License | https://github.com/jpanther/congo */
/*! tailwindcss v3.3.5 | MIT License | https://tailwindcss.com */ /*! tailwindcss v3.3.5 | MIT License | https://tailwindcss.com */

View File

@ -1,4 +1,4 @@
/*! Congo v2.7.4 | MIT License | https://github.com/jpanther/congo */ /*! Congo v2.7.5 | MIT License | https://github.com/jpanther/congo */
@tailwind base; @tailwind base;
@tailwind components; @tailwind components;

File diff suppressed because one or more lines are too long

View File

@ -11,3 +11,52 @@ title = "Congo"
# mainSections = ["section1", "section2"] # mainSections = ["section1", "section2"]
# description = "My awesome website" # description = "My awesome website"
[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/" },
# { 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" },
# { 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" },
# { 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" },
# ]

View File

@ -80,52 +80,3 @@ fingerprintAlgorithm = "sha256"
# bing = "" # bing = ""
# pinterest = "" # pinterest = ""
# yandex = "" # yandex = ""
[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/" },
# { 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" },
# { 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" },
# { 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" },
# ]

View File

@ -12,3 +12,14 @@ copyright = "&copy; 2023 Congo contributors"
mainSections = ["samples"] mainSections = ["samples"]
description = "Ein leistungsstarkes, leichtgewichtiges Theme für Hugo, das mit Tailwind CSS erstellt wurde." 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/" },
]

View File

@ -11,3 +11,15 @@ copyright = "&copy; 2023 Congo contributors"
mainSections = ["samples"] mainSections = ["samples"]
description = "A powerful, lightweight theme for Hugo built with Tailwind CSS." description = "A powerful, lightweight theme for Hugo built with Tailwind CSS."
[params.author]
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/" },
]

View File

@ -11,3 +11,15 @@ copyright = "&copy; 2023 Congo contributors"
mainSections = ["samples"] mainSections = ["samples"]
description = "Un tema poderoso y liviano para Hugo creado con Tailwind CSS." 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/" },
]

View File

@ -11,3 +11,15 @@ copyright = "&copy; 2023 Congo contributors"
mainSections = ["samples"] mainSections = ["samples"]
description = "Tailwind CSSをベースに開発された強力で軽量なHugo向けテーマ" 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/" },
]

View File

@ -75,15 +75,3 @@ fingerprintAlgorithm = "sha256"
# bing = "" # bing = ""
# pinterest = "" # pinterest = ""
# yandex = "" # yandex = ""
[author]
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/" },
]

0
exampleSite/content/_index.es.md 100755 → 100644
View File

0
exampleSite/content/_index.md 100755 → 100644
View File

View File

View File

@ -53,6 +53,7 @@ Congoは現在、以下の言語に対応しています:
| :gb: **English (default)** | `en` | | :gb: **English (default)** | `en` |
| :egypt: Arabic | `ar` | | :egypt: Arabic | `ar` |
| :bangladesh: Bengali | `bn` | | :bangladesh: Bengali | `bn` |
| :bulgaria: Bulgarian | `bg` |
| :cn: Chinese - Simplified (China) | `zh-cn` | | :cn: Chinese - Simplified (China) | `zh-cn` |
| :taiwan: Chinese - Traditional (Taiwan) | `zh-tw` | | :taiwan: Chinese - Traditional (Taiwan) | `zh-tw` |
| :flag-cz: Czech | `cs` | | :flag-cz: Czech | `cs` |
@ -73,6 +74,7 @@ Congoは現在、以下の言語に対応しています:
| :slovakia: Slovak | `sk` | | :slovakia: Slovak | `sk` |
| :es: Spanish (Spain) | `es` | | :es: Spanish (Spain) | `es` |
| :tr: Turkish | `tr` | | :tr: Turkish | `tr` |
| :ukraine: Ukrainian | `uk` |
翻訳文字列を含むカスタムファイルを `i18n/[code].yaml` に作成することでデフォルトの翻訳をオーバーライドできます。このメソッドを使って新しい言語を追加することもできます。新しい翻訳をコミュニティと共有したい場合、[Pull Request](https://github.com/jpanther/congo/pulls)を作ってください。 翻訳文字列を含むカスタムファイルを `i18n/[code].yaml` に作成することでデフォルトの翻訳をオーバーライドできます。このメソッドを使って新しい言語を追加することもできます。新しい翻訳をコミュニティと共有したい場合、[Pull Request](https://github.com/jpanther/congo/pulls)を作ってください。
@ -98,11 +100,11 @@ Congoは現在、以下の言語に対応しています:
|`params.dateFormat`|`"2 January 2006"`|日付の書式。許容される書式については、[Hugo docs](https://gohugo.io/functions/format/#gos-layout-string)を参照してください。| |`params.dateFormat`|`"2 January 2006"`|日付の書式。許容される書式については、[Hugo docs](https://gohugo.io/functions/format/#gos-layout-string)を参照してください。|
|`params.mainSections`|_Not set_|最近の記事リストに表示するセクション。指定されていない場合は、記事の数が最も多いセクションが使われます。| |`params.mainSections`|_Not set_|最近の記事リストに表示するセクション。指定されていない場合は、記事の数が最も多いセクションが使われます。|
|`params.description`|_Not set_|ウェブサイトの説明。これはサイトのメタデータに使用されます。| |`params.description`|_Not set_|ウェブサイトの説明。これはサイトのメタデータに使用されます。|
|`author.name`|_Not set_|著者の名前。これは記事のフッターと、プロフィールレイアウトが使用されている場合にホームページに表示されます。| |`params.author.name`|_Not set_|著者の名前。これは記事のフッターと、プロフィールレイアウトが使用されている場合にホームページに表示されます。|
|`author.image`|_Not set_|著者の画像ファイルへのパス。画像は縦横比1:1で、 `assets/` に置くこと。| |`params.author.image`|_Not set_|著者の画像ファイルへのパス。画像は縦横比1:1で、 `assets/` に置くこと。|
|`author.headline`|_Not set_|著者の見出しを含むMarkdown文字列。プロフィールのトップページで著者の名前の下に表示されます。| |`params.author.headline`|_Not set_|著者の見出しを含むMarkdown文字列。プロフィールのトップページで著者の名前の下に表示されます。|
|`author.bio`|_Not set_|著者の経歴を含むMarkdown文字列。記事のフッターに表示されます。| |`params.author.bio`|_Not set_|著者の経歴を含むMarkdown文字列。記事のフッターに表示されます。|
|`author.links`|_Not set_|著者の詳細とともに表示するリンク。設定ファイルにはリンクの例が含まれており、コメントを外すだけで有効にすることができます。リンクが表示される順番は、配列に表示される順番によって決まります。 `assets/icons/` に対応するSVGアイコンを用意することで、カスタムリンクを追加することもできます。| |`params.author.links`|_Not set_|著者の詳細とともに表示するリンク。設定ファイルにはリンクの例が含まれており、コメントを外すだけで有効にすることができます。リンクが表示される順番は、配列に表示される順番によって決まります。 `assets/icons/` に対応するSVGアイコンを用意することで、カスタムリンクを追加することもできます。|
<!-- prettier-ignore-end --> <!-- prettier-ignore-end -->
### メニュー ### メニュー

View File

@ -53,6 +53,7 @@ The theme currently supports the following languages out of the box:
| :gb: **English (default)** | `en` | | :gb: **English (default)** | `en` |
| :egypt: Arabic | `ar` | | :egypt: Arabic | `ar` |
| :bangladesh: Bengali | `bn` | | :bangladesh: Bengali | `bn` |
| :bulgaria: Bulgarian | `bg` |
| :cn: Chinese - Simplified (China) | `zh-cn` | | :cn: Chinese - Simplified (China) | `zh-cn` |
| :taiwan: Chinese - Traditional (Taiwan) | `zh-tw` | | :taiwan: Chinese - Traditional (Taiwan) | `zh-tw` |
| :flag-cz: Czech | `cs` | | :flag-cz: Czech | `cs` |
@ -73,6 +74,7 @@ The theme currently supports the following languages out of the box:
| :slovakia: Slovak | `sk` | | :slovakia: Slovak | `sk` |
| :es: Spanish (Spain) | `es` | | :es: Spanish (Spain) | `es` |
| :tr: Turkish | `tr` | | :tr: Turkish | `tr` |
| :ukraine: Ukrainian | `uk` |
The default translations can be overridden by creating a custom file in `i18n/[code].yaml` that contains the translation strings. You can also use this method to add new languages. If you'd like to share a new translation with the community, please [open a pull request](https://github.com/jpanther/congo/pulls). The default translations can be overridden by creating a custom file in `i18n/[code].yaml` that contains the translation strings. You can also use this method to add new languages. If you'd like to share a new translation with the community, please [open a pull request](https://github.com/jpanther/congo/pulls).
@ -98,6 +100,11 @@ The default file can be used as a template to create additional languages, or re
|`params.dateFormat`|`"2 January 2006"`|How dates are formatted in this language. Refer to the [Hugo docs](https://gohugo.io/functions/format/#gos-layout-string) for acceptable formats.| |`params.dateFormat`|`"2 January 2006"`|How dates are formatted in this language. Refer to the [Hugo docs](https://gohugo.io/functions/format/#gos-layout-string) for acceptable formats.|
|`params.mainSections`|_Not set_|The sections that should be displayed in the recent articles list. If not provided the section with the greatest number of articles is used.| |`params.mainSections`|_Not set_|The sections that should be displayed in the recent articles list. If not provided the section with the greatest number of articles is used.|
|`params.description`|_Not set_|The website description. This will be used in the site metadata.| |`params.description`|_Not set_|The website description. This will be used in the site metadata.|
|`params.author.name`|_Not set_|The author's name. This will be displayed in article footers, and on the homepage when the profile layout is used.|
|`params.author.image`|_Not set_|Path to the image file of the author. The image should be a 1:1 aspect ratio and placed in the site's `assets/` folder.|
|`params.author.headline`|_Not set_|A Markdown string containing the author's headline. It will be displayed on the profile homepage under the author's name.|
|`params.author.bio`|_Not set_|A Markdown string containing the author's bio. It will be displayed in article footers.|
|`params.author.links`|_Not set_|The links to display alongside the author's details. The config file contains example links which can simply be uncommented to enable. The order that the links are displayed is determined by the order they appear in the array. Custom links can be added by providing corresponding SVG icon assets in `assets/icons/`.|
<!-- prettier-ignore-end --> <!-- prettier-ignore-end -->
### Menus ### Menus
@ -170,11 +177,6 @@ Many of the article defaults here can be overridden on a per article basis by sp
|`verification.bing`|_Not set_|The site verification string provided by Bing to be included in the site metadata.| |`verification.bing`|_Not set_|The site verification string provided by Bing to be included in the site metadata.|
|`verification.pinterest`|_Not set_|The site verification string provided by Pinterest to be included in the site metadata.| |`verification.pinterest`|_Not set_|The site verification string provided by Pinterest to be included in the site metadata.|
|`verification.yandex`|_Not set_|The site verification string provided by Yandex to be included in the site metadata.| |`verification.yandex`|_Not set_|The site verification string provided by Yandex to be included in the site metadata.|
|`author.name`|_Not set_|The author's name. This will be displayed in article footers, and on the homepage when the profile layout is used.|
|`author.image`|_Not set_|Path to the image file of the author. The image should be a 1:1 aspect ratio and placed in the site's `assets/` folder.|
|`author.headline`|_Not set_|A Markdown string containing the author's headline. It will be displayed on the profile homepage under the author's name.|
|`author.bio`|_Not set_|A Markdown string containing the author's bio. It will be displayed in article footers.|
|`author.links`|_Not set_|The links to display alongside the author's details. The config file contains example links which can simply be uncommented to enable. The order that the links are displayed is determined by the order they appear in the array. Custom links can be added by providing corresponding SVG icon assets in `assets/icons/`.|
<!-- prettier-ignore-end --> <!-- prettier-ignore-end -->
## Other configuration files ## Other configuration files

View File

@ -38,7 +38,7 @@ languageCode = "en"
title = "My awesome website" title = "My awesome website"
[author] [params.author]
name = "My name" name = "My name"
image = "img/author.jpg" image = "img/author.jpg"
headline = "A generally awesome human" headline = "A generally awesome human"
@ -48,7 +48,7 @@ links = [
] ]
``` ```
`[author]` はウェブサイト上でどのように著者情報を表示するかを決定します。画像はサイトの `assets/` に置きましょう。リンクはリストの記述順に沿って表示されます。 `[params.author]` はウェブサイト上でどのように著者情報を表示するかを決定します。画像はサイトの `assets/` に置きましょう。リンクはリストの記述順に沿って表示されます。
各設定に関する詳細情報は、[設定]({{< ref "configuration" >}})セクションで説明されています。 各設定に関する詳細情報は、[設定]({{< ref "configuration" >}})セクションで説明されています。

View File

@ -38,7 +38,7 @@ The language code in the language config filename should match the `languageCode
title = "My awesome website" title = "My awesome website"
[author] [params.author]
name = "My name" name = "My name"
image = "img/author.jpg" image = "img/author.jpg"
headline = "A generally awesome human" headline = "A generally awesome human"
@ -48,7 +48,7 @@ links = [
] ]
``` ```
The `[author]` configuration determines how the author information is displayed on the website. The image should be placed in the site's `assets/` folder. Links will be displayed in the order they are listed. The `[params.author]` configuration determines how the author information is displayed on the website. The image should be placed in the site's `assets/` folder. Links will be displayed in the order they are listed.
If you need extra detail, further information about each of these configuration options, is covered in the [Configuration]({{< ref "configuration" >}}) section. If you need extra detail, further information about each of these configuration options, is covered in the [Configuration]({{< ref "configuration" >}}) section.

View File

View File

View File

View File

View File

View File

View File

View File

View File

0
exampleSite/content/samples/external/index.md vendored 100755 → 100644
View File

View File

View File

View File

View File

56
i18n/bg.yaml 100644
View File

@ -0,0 +1,56 @@
article:
anchor_label: "Котва"
date: "{{ .Date }}"
date_updated: "Обновено: {{ .Date }}"
draft: "Чернова"
edit_title: "Редактиране на съдържание"
reading_time:
one: "{{ .Count }} минута"
other: "{{ .Count }} минути"
reading_time_title: "Време за четене"
table_of_contents: "Съдържание"
word_count:
one: "{{ .Count }} дума"
other: "{{ .Count }} думи"
author:
byline_title: "Автор"
code:
copy: "Копирай"
copied: "Копирано"
error:
404_title: "Страницата не е намерена :confused:"
404_error: "Грешка 404"
404_description: "Изглежда, че страницата, която търсите не съществува."
footer:
dark_appearance: "Превключи към тъмна тема"
light_appearance: "Превключи към светла тема"
powered_by: "Осъществено чрез {{ .Hugo }} &amp; {{ .Congo }}"
list:
externalurl_title: "Връзка към външен сайт"
no_articles: "Тук няма статии за прелистване."
nav:
scroll_to_top_title: "Превърти до началото"
skip_to_main: "Преминаване към основното съдържание"
search:
open_button_title: "Търсене (/)"
close_button_title: "Затвори (Esc)"
input_placeholder: "Търси"
sharing:
email: "Изпращане по имейл"
facebook: "Споделяне във Facebook"
linkedin: "Споделяне в LinkedIn"
mastodon: "Публикуване в Mastodon"
pinterest: "Пин в Pinterest"
reddit: "Публикуване в Reddit"
twitter: "Туит в Twitter"
shortcode:
recent_articles: "Последни"

View File

@ -1,7 +1,7 @@
article: article:
anchor_label: "Anker" anchor_label: "Anker"
date: "{{ .Date }}" date: "{{ .Date }}"
date_updated: "Bijgwerkt: {{ .Date }}" date_updated: "Bijgewerkt: {{ .Date }}"
draft: "Concept" draft: "Concept"
edit_title: "Bewerk inhoud" edit_title: "Bewerk inhoud"
reading_time: reading_time:

60
i18n/uk.yaml 100644
View File

@ -0,0 +1,60 @@
article:
anchor_label: "Закладка"
date: "{{ .Date }}"
date_updated: "Оновлено {{ .Date }}"
draft: "Чернетка"
edit_title: "Редагувати"
reading_time:
one: "{{ .Count }} хвилину"
few: "{{ .Count }} хвилини"
many: "{{ .Count }} хвилин"
other: "{{ .Count }} хвилини"
reading_time_title: "Прочитаєте за"
table_of_contents: "Зміст"
word_count:
one: "{{ .Count }} слово"
few: "{{ .Count }} слова"
many: "{{ .Count }} слів"
other: "{{ .Count }} слова"
author:
byline_title: "Автор"
code:
copy: "Копіювати"
copied: "Скопійовано"
error:
404_title: "Немає такої сторінки :confused:"
404_error: "Помилка 404"
404_description: "Здається, сторінки, яка вам потрібна, не існує."
footer:
dark_appearance: "Увімкнути темний режим"
light_appearance: "Увімкнути світлий режим"
powered_by: "Сайт працює на рушії {{ .Hugo }} зі стилем {{ .Congo }}"
list:
externalurl_title: "Зовнішнє посилання"
no_articles: "Дописів поки що немає"
nav:
scroll_to_top_title: "Повернутися на початок сторінки"
skip_to_main: "До тексту"
search:
open_button_title: "Шукати (/)"
close_button_title: "Закрити (Esc)"
input_placeholder: "Введіть запит тут"
sharing:
email: "Надіслати електронною поштою"
facebook: "Поширити на Facebook"
linkedin: "Поширити на LinkedIn"
mastodon: "Поширити на Mastodon"
pinterest: "Зберегти на Pinterest"
reddit: "Опублікувати на Reddit"
twitter: "Поширити на Twitter"
shortcode:
recent_articles: "Недавні дописи"

View File

@ -1,4 +1,4 @@
{{ with .Site.Params.Author.links }} {{ with .Site.Language.Params.Author.links }}
<div class="flex flex-wrap text-neutral-400 dark:text-neutral-500"> <div class="flex flex-wrap text-neutral-400 dark:text-neutral-500">
{{ range $links := . }} {{ range $links := . }}
{{ range $name, $url := $links }} {{ range $name, $url := $links }}

View File

@ -1,6 +1,6 @@
{{ if .Params.showAuthor | default (.Site.Params.article.showAuthor | default true) }} {{ if .Params.showAuthor | default (.Site.Params.article.showAuthor | default true) }}
<div class="flex"> <div class="flex">
{{ with .Site.Params.Author.image }} {{ with .Site.Language.Params.Author.image }}
{{ $authorImage := resources.Get . }} {{ $authorImage := resources.Get . }}
{{ if $authorImage }} {{ if $authorImage }}
{{ $authorImage := $authorImage.Fill "192x192 Center" }} {{ $authorImage := $authorImage.Fill "192x192 Center" }}
@ -8,7 +8,7 @@
class="!mb-0 !mt-0 me-4 h-24 w-24 rounded-full" class="!mb-0 !mt-0 me-4 h-24 w-24 rounded-full"
width="96" width="96"
height="96" height="96"
alt="{{ $.Site.Params.Author.name | default "Author" }}" alt="{{ $.Site.Language.Params.Author.name | default "Author" }}"
src="{{ $authorImage.RelPermalink }}" src="{{ $authorImage.RelPermalink }}"
{{ if $.Site.Params.enableImageLazyLoading | default true }} {{ if $.Site.Params.enableImageLazyLoading | default true }}
loading="lazy" loading="lazy"
@ -17,7 +17,7 @@
{{ end }} {{ end }}
{{ end }} {{ end }}
<div class="place-self-center"> <div class="place-self-center">
{{ with .Site.Params.Author.name | markdownify | emojify }} {{ with .Site.Language.Params.Author.name | markdownify | emojify }}
<div class="text-[0.6rem] uppercase leading-3 text-neutral-500 dark:text-neutral-400"> <div class="text-[0.6rem] uppercase leading-3 text-neutral-500 dark:text-neutral-400">
{{ i18n "author.byline_title" | markdownify | emojify }} {{ i18n "author.byline_title" | markdownify | emojify }}
</div> </div>
@ -25,7 +25,7 @@
{{ . }} {{ . }}
</div> </div>
{{ end }} {{ end }}
{{ with .Site.Params.Author.bio | markdownify | emojify }} {{ with .Site.Language.Params.Author.bio | markdownify | emojify }}
<div class="text-sm text-neutral-700 dark:text-neutral-400">{{ . }}</div> <div class="text-sm text-neutral-700 dark:text-neutral-400">{{ . }}</div>
{{ end }} {{ end }}
<div class="text-2xl sm:text-lg">{{ partialCached "author-links.html" . }}</div> <div class="text-2xl sm:text-lg">{{ partialCached "author-links.html" . }}</div>

View File

@ -4,7 +4,7 @@
<nav class="pb-4 text-base font-medium text-neutral-500 dark:text-neutral-400"> <nav class="pb-4 text-base font-medium text-neutral-500 dark:text-neutral-400">
<ul class="flex flex-col list-none sm:flex-row"> <ul class="flex flex-col list-none sm:flex-row">
{{ range .Site.Menus.footer }} {{ range .Site.Menus.footer }}
{{ if and (eq .Params.action "locale") (and (not page.IsTranslated) (not site.IsMultiLingual)) }} {{ if and (eq .Params.action "locale") (or (not page.IsTranslated) (not site.IsMultiLingual)) }}
{{ continue }} {{ continue }}
{{ end }} {{ end }}
<li class="mb-1 group text-end sm:mb-0 sm:me-7 sm:last:me-0"> <li class="mb-1 group text-end sm:mb-0 sm:me-7 sm:last:me-0">
@ -86,7 +86,7 @@
{{- else }} {{- else }}
&copy; &copy;
{{ now.Format "2006" }} {{ now.Format "2006" }}
{{ .Site.Params.Author.name | markdownify | emojify }} {{ .Site.Language.Params.Author.name | markdownify | emojify }}
{{- end }} {{- end }}
</p> </p>
{{ end }} {{ end }}

View File

@ -8,5 +8,5 @@
{{ warnf "[CONGO] Theme parameter `logo` has been renamed to `header.logo`. Please update your site configuration." }} {{ warnf "[CONGO] Theme parameter `logo` has been renamed to `header.logo`. Please update your site configuration." }}
{{ end }} {{ end }}
{{ if .Author }} {{ if .Author }}
{{ warnf "[CONGO] Theme parameter `.Site.author` in `languages.xx.toml` has been renamed to `.Site.Params.author` in `params.toml`. Please update your site configuration." }} {{ warnf "[CONGO] Theme parameter `.Site.author` in `languages.xx.toml` has been renamed to `.Site.Language.Params.Author` in `params.toml`. Please update your site configuration." }}
{{ end }} {{ end }}

View File

@ -117,8 +117,8 @@
{{/* Schema */}} {{/* Schema */}}
{{ partial "schema.html" . }} {{ partial "schema.html" . }}
{{/* Me */}} {{/* Me */}}
{{ with .Site.Params.Author.name }}<meta name="author" content="{{ . }}" />{{ end }} {{ with .Site.Language.Params.Author.name }}<meta name="author" content="{{ . }}" />{{ end }}
{{ with .Site.Params.Author.links }} {{ with .Site.Language.Params.Author.links }}
{{ range $links := . }} {{ range $links := . }}
{{ range $name, $url := $links }}<link href="{{ $url }}" rel="me" />{{ end }} {{ range $name, $url := $links }}<link href="{{ $url }}" rel="me" />{{ end }}
{{ end }} {{ end }}

View File

@ -9,7 +9,7 @@
<ul class="flex flex-col list-none text-end sm:flex-row"> <ul class="flex flex-col list-none text-end sm:flex-row">
{{ if .Site.Menus.main }} {{ if .Site.Menus.main }}
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}
{{ if and (eq .Params.action "locale") (and (not page.IsTranslated) (not site.IsMultiLingual)) }} {{ if and (eq .Params.action "locale") (or (not page.IsTranslated) (not site.IsMultiLingual)) }}
{{ continue }} {{ continue }}
{{ end }} {{ end }}
<li class="group mb-1 sm:mb-0 sm:me-7 sm:last:me-0.5"> <li class="group mb-1 sm:mb-0 sm:me-7 sm:last:me-0.5">

View File

@ -25,7 +25,7 @@
</li> </li>
{{ if .Site.Menus.main }} {{ if .Site.Menus.main }}
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}
{{ if and (eq .Params.action "locale") (and (not page.IsTranslated) (not site.IsMultiLingual)) }} {{ if and (eq .Params.action "locale") (or (not page.IsTranslated) (not site.IsMultiLingual)) }}
{{ continue }} {{ continue }}
{{ end }} {{ end }}
<li class="mb-1 group"> <li class="mb-1 group">

View File

@ -25,7 +25,7 @@
</li> </li>
{{ if .Site.Menus.main }} {{ if .Site.Menus.main }}
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}
{{ if and (eq .Params.action "locale") (and (not page.IsTranslated) (not site.IsMultiLingual)) }} {{ if and (eq .Params.action "locale") (or (not page.IsTranslated) (not site.IsMultiLingual)) }}
{{ continue }} {{ continue }}
{{ end }} {{ end }}
<li class="mb-1 group"> <li class="mb-1 group">
@ -129,7 +129,7 @@
<ul class="flex-row hidden list-none text-end sm:flex"> <ul class="flex-row hidden list-none text-end sm:flex">
{{ if .Site.Menus.main }} {{ if .Site.Menus.main }}
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}
{{ if and (eq .Params.action "locale") (and (not page.IsTranslated) (not site.IsMultiLingual)) }} {{ if and (eq .Params.action "locale") (or (not page.IsTranslated) (not site.IsMultiLingual)) }}
{{ continue }} {{ continue }}
{{ end }} {{ end }}
<li class="mb-1 group sm:mb-0 sm:me-7 sm:last:me-0"> <li class="mb-1 group sm:mb-0 sm:me-7 sm:last:me-0">

View File

@ -4,7 +4,7 @@
{{ end }} flex flex-col items-center justify-center text-center" {{ end }} flex flex-col items-center justify-center text-center"
> >
<header class="mb-3 flex flex-col items-center"> <header class="mb-3 flex flex-col items-center">
{{ with .Site.Params.Author.image }} {{ with .Site.Language.Params.Author.image }}
{{ $authorImage := resources.Get . }} {{ $authorImage := resources.Get . }}
{{ if $authorImage }} {{ if $authorImage }}
{{ $authorImage := $authorImage.Fill "288x288 Center" }} {{ $authorImage := $authorImage.Fill "288x288 Center" }}
@ -12,15 +12,15 @@
class="mb-2 h-36 w-36 rounded-full" class="mb-2 h-36 w-36 rounded-full"
width="144" width="144"
height="144" height="144"
alt="{{ $.Site.Params.Author.name | default "Author" }}" alt="{{ $.Site.Language.Params.Author.name | default "Author" }}"
src="{{ $authorImage.RelPermalink }}" src="{{ $authorImage.RelPermalink }}"
/> />
{{ end }} {{ end }}
{{ end }} {{ end }}
<h1 class="text-4xl font-extrabold"> <h1 class="text-4xl font-extrabold">
{{ .Site.Params.Author.name | default .Site.Title }} {{ .Site.Language.Params.Author.name | default .Site.Title }}
</h1> </h1>
{{ with .Site.Params.Author.headline }} {{ with .Site.Language.Params.Author.headline }}
<h2 class="text-xl text-neutral-500 dark:text-neutral-400"> <h2 class="text-xl text-neutral-500 dark:text-neutral-400">
{{ . | markdownify | emojify }} {{ . | markdownify | emojify }}
</h2> </h2>

View File

@ -11,7 +11,7 @@
{{ with .Site.Params.keywords }}"keywords": {{ . }},{{ end }} {{ with .Site.Params.keywords }}"keywords": {{ . }},{{ end }}
"publisher" : { "publisher" : {
"@type": "Person", "@type": "Person",
"name": "{{ .Site.Params.Author.name | safeJS }}" "name": "{{ .Site.Language.Params.Author.name | safeJS }}"
} }
} }
</script> </script>
@ -30,7 +30,7 @@
"url" : "{{ .Permalink }}", "url" : "{{ .Permalink }}",
"author" : { "author" : {
"@type": "Person", "@type": "Person",
"name": "{{ .Site.Params.Author.name | safeJS }}" "name": "{{ .Site.Language.Params.Author.name | safeJS }}"
}, },
{{ with .PublishDate }}"copyrightYear": "{{ .Format "2006" }}",{{ end }} {{ with .PublishDate }}"copyrightYear": "{{ .Format "2006" }}",{{ end }}
{{ with .Date }}"dateCreated": "{{ .Format $iso8601 }}",{{ end }} {{ with .Date }}"dateCreated": "{{ .Format $iso8601 }}",{{ end }}

14
package-lock.json generated
View File

@ -14,7 +14,7 @@
"chart.js": "^4.4.0", "chart.js": "^4.4.0",
"fuse.js": "^7.0.0", "fuse.js": "^7.0.0",
"katex": "^0.16.9", "katex": "^0.16.9",
"mermaid": "^10.6.0", "mermaid": "^10.6.1",
"prettier": "^3.1.0", "prettier": "^3.1.0",
"prettier-plugin-go-template": "^0.0.15", "prettier-plugin-go-template": "^0.0.15",
"prettier-plugin-tailwindcss": "^0.5.7", "prettier-plugin-tailwindcss": "^0.5.7",
@ -1489,9 +1489,9 @@
} }
}, },
"node_modules/mermaid": { "node_modules/mermaid": {
"version": "10.6.0", "version": "10.6.1",
"resolved": "https://registry.npmjs.org/mermaid/-/mermaid-10.6.0.tgz", "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-10.6.1.tgz",
"integrity": "sha512-Hcti+Q2NiWnb2ZCijSX89Bn2i7TCUwosBdIn/d+u63Sz7y40XU6EKMctT4UX4qZuZGfKGZpfOeim2/KTrdR7aQ==", "integrity": "sha512-Hky0/RpOw/1il9X8AvzOEChfJtVvmXm+y7JML5C//ePYMy0/9jCEmW1E1g86x9oDfW9+iVEdTV/i+M6KWRNs4A==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@braintree/sanitize-url": "^6.0.1", "@braintree/sanitize-url": "^6.0.1",
@ -4221,9 +4221,9 @@
"dev": true "dev": true
}, },
"mermaid": { "mermaid": {
"version": "10.6.0", "version": "10.6.1",
"resolved": "https://registry.npmjs.org/mermaid/-/mermaid-10.6.0.tgz", "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-10.6.1.tgz",
"integrity": "sha512-Hcti+Q2NiWnb2ZCijSX89Bn2i7TCUwosBdIn/d+u63Sz7y40XU6EKMctT4UX4qZuZGfKGZpfOeim2/KTrdR7aQ==", "integrity": "sha512-Hky0/RpOw/1il9X8AvzOEChfJtVvmXm+y7JML5C//ePYMy0/9jCEmW1E1g86x9oDfW9+iVEdTV/i+M6KWRNs4A==",
"dev": true, "dev": true,
"requires": { "requires": {
"@braintree/sanitize-url": "^6.0.1", "@braintree/sanitize-url": "^6.0.1",

View File

@ -1,6 +1,6 @@
{ {
"name": "hugo-congo-theme", "name": "hugo-congo-theme",
"version": "2.7.4", "version": "2.7.5",
"description": "Congo theme for Hugo", "description": "Congo theme for Hugo",
"scripts": { "scripts": {
"preinstall": "rimraf assets/lib", "preinstall": "rimraf assets/lib",
@ -33,7 +33,7 @@
"chart.js": "^4.4.0", "chart.js": "^4.4.0",
"fuse.js": "^7.0.0", "fuse.js": "^7.0.0",
"katex": "^0.16.9", "katex": "^0.16.9",
"mermaid": "^10.6.0", "mermaid": "^10.6.1",
"prettier": "^3.1.0", "prettier": "^3.1.0",
"prettier-plugin-go-template": "^0.0.15", "prettier-plugin-go-template": "^0.0.15",
"prettier-plugin-tailwindcss": "^0.5.7", "prettier-plugin-tailwindcss": "^0.5.7",

0
static/android-chrome-192x192.png 100755 → 100644
View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

0
static/android-chrome-512x512.png 100755 → 100644
View File

Before

Width:  |  Height:  |  Size: 8.8 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

0
static/apple-touch-icon.png 100755 → 100644
View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

0
static/favicon-16x16.png 100755 → 100644
View File

Before

Width:  |  Height:  |  Size: 229 B

After

Width:  |  Height:  |  Size: 229 B

0
static/favicon-32x32.png 100755 → 100644
View File

Before

Width:  |  Height:  |  Size: 307 B

After

Width:  |  Height:  |  Size: 307 B

0
static/favicon.ico 100755 → 100644
View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

0
static/site.webmanifest 100755 → 100644
View File