diff --git a/exampleSite/config/_default/languages.pt-PT.toml b/exampleSite/config/_default/languages.pt-PT.toml deleted file mode 100644 index 67c2807e..00000000 --- a/exampleSite/config/_default/languages.pt-PT.toml +++ /dev/null @@ -1,24 +0,0 @@ -languageCode = "pt-PT" -languageName = "PT" -displayName = "PT" -isoCode = "pt-PT" -weight = 1 -rtl = false - -title = "Blowfish" -logo = "img/blowfish_logo_transparent.png" -description = "A powerful, lightweight theme for Hugo built with Tailwind CSS." -# copyright = "Copy, _right?_ :thinking_face:" - -dateFormat = "2 January 2006" - -[author] - name = "Blowfish" - image = "img/blowfish_logo.png" - headline = "A powerful, lightweight theme for Hugo built with Tailwind CSS." - bio = "A powerful, lightweight theme for Hugo built with Tailwind CSS." - links = [ - { twitter = "https://twitter.com/burufugu" }, - { mastodon = "https://masto.ai/@blowfish" }, - { github = "https://github.com/nunocoracao/blowfish" }, - ] diff --git a/exampleSite/content/docs/configuration/index.md b/exampleSite/content/docs/configuration/index.md index 4b422576..167b5990 100644 --- a/exampleSite/content/docs/configuration/index.md +++ b/exampleSite/content/docs/configuration/index.md @@ -55,28 +55,31 @@ Blowfish is optimised for full multilingual websites and theme assets are transl The theme currently supports the following languages by default: -| Language | Code | -| ------------------------------------- | ------- | -| :gb: English | `en` | -| :bangladesh: Bengali | `bn` | -| :cn: Simplified Chinese (China) | `zh-cn` | -| :taiwan: Traditional Chinese (Taiwan) | `zh-tw` | -| :finland: Finnish | `fi` | -| :fr: French | `fr` | -| :de: German | `de` | -| :israel: Hebrew | `he` | -| :hungary: Hungarian | `hu` | -| :it: Italian | `it` | -| :jp: Japanese | `ja` | -| :brazil: Portuguese (Brazil) | `pt-br` | -| :portugal: Portuguese (Portugal) | `pt-pt` | -| :poland: Polish | `pl` | -| :romania: Romanian | `ro` | -| :es: Spanish (Spain) | `es` | -| :tr: Turkish | `tr` | -| ๐Ÿ‡ญ๐Ÿ‡ท Croatian | `hr` | -| ๐Ÿ‡ฎ๐Ÿ‡ฉ Indonesian | `id` | -| ๐Ÿ‡จ๐Ÿ‡ฟ Czech | `cs` | +| Language | Code | +| ------------------------------ | ------- | +| ๐Ÿ‡ง๐Ÿ‡ฉ Bengali | `bn` | +| ๐Ÿ‡จ๐Ÿ‡ฟ Czech | `cs` | +| ๐Ÿ‡ฉ๐Ÿ‡ช German | `de` | +| ๐Ÿ‡ฌ๐Ÿ‡ง English | `en` | +| ๐Ÿ‡ช๐Ÿ‡ธ Spanish (Spain) | `es` | +| ๐Ÿ‡ซ๐Ÿ‡ฎ Finnish | `fi` | +| ๐Ÿ‡ซ๐Ÿ‡ท French | `fr` | +| ๐Ÿ‡ฎ๐Ÿ‡ฑ Hebrew | `he` | +| ๐Ÿ‡ญ๐Ÿ‡ท Croatian | `hr` | +| ๐Ÿ‡ญ๐Ÿ‡บ Hungarian | `hu` | +| ๐Ÿ‡ฎ๐Ÿ‡ฉ Indonesian | `id` | +| ๐Ÿ‡ฎ๐Ÿ‡น Italian | `it` | +| ๐Ÿ‡ฏ๐Ÿ‡ต Japanese | `ja` | +| ๐Ÿ‡ต๐Ÿ‡ฑ Polish | `pl` | +| ๐Ÿ‡ง๐Ÿ‡ท Portuguese (Brazil) | `pt-br` | +| ๐Ÿ‡ต๐Ÿ‡น Portuguese (Portugal) | `pt-pt` | +| ๐Ÿ‡ท๐Ÿ‡ด Romanian | `ro` | +| ๐Ÿ‡ท๐Ÿ‡บ Russian | `ru` | +| ๐Ÿ‡น๐Ÿ‡ท Turkish | `tr` | +| ๐Ÿ‡จ๐Ÿ‡ณ Simplified Chinese (China) | `zh-cn` | +| ๐Ÿ‡น๐Ÿ‡ผ Traditional Chinese (Taiwan) | `zh-tw` | + + 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/nunocoracao/blowfish/pulls). @@ -143,7 +146,7 @@ Many of the article defaults here can be overridden on a per article basis by sp | `disableImageZoom` | `false` | Disables image zoom feature across all the images in the site. | | `disableImageOptimization` | `false` | Disables image resize and optimization features across all the images in the site. | | `defaultBackgroundImage` | _Not set_ | Default background image for both `background` homepage layout and `background` hero style | -| `defaultBackgrouclearndImage` | _Not set_ | Marks menu entries in the main manu when selected | +| `defaultBackgrouclearndImage` | _Not set_ | Marks menu entries in the main manu when selected | | `smartTOC` | _Not set_ | Activate smart Table of Contents, items in view will be highlighted. | | `smartTOCHideUnfocusedChildren` | _Not set_ | When smart Table of Contents is turned on, this will hide deeper levels of the table when they are not in focus. | @@ -176,34 +179,34 @@ Many of the article defaults here can be overridden on a per article basis by sp | `homepage.layoutBackgroundBlur` | `false` | Makes the background image in the homepage layout blur with the scroll | ### Article -| Name | Default | Description | -| ------------------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `article.showDate` | `true` | Whether or not article dates are displayed. | -| `article.showViews` | `false` | Whether or not article views are displayed. This requires firebase integrations to be enabled, look below. | -| `article.showLikes` | `false` | Whether or not article likes are displayed. This requires firebase integrations to be enabled, look below. | -| `article.showDateUpdated` | `false` | Whether or not the dates articles were updated are displayed. | -| `article.showAuthor` | `true` | Whether or not the author box is displayed in the article footer. | -| `article.showHero` | `false` | Whether the thumbnail image will be shown as a hero image within each article page. | -| `article.heroStyle` | _Not set_ | Style to display the hero image, valid options are: `basic`, `big`, `background`, `thumbAndBackground`. | -| `article.layoutBackgroundBlur` | `true` | Makes the background image in the background article heroStyle blur with the scroll | -| `article.layoutBackgroundHeaderSpace` | `true` | Add space between the header and the body. | -| `article.showBreadcrumbs` | `false` | Whether or not breadcrumbs are displayed in the article header. | -| `article.showDraftLabel` | `true` | Whether or not the draft indicator is shown next to articles when site is built with `--buildDrafts`. | -| `article.showEdit` | `false` | Whether or not the link to edit the article content should be displayed. | -| `article.editURL` | _Not set_ | When `article.showEdit` is active, the URL for the edit link. | -| `article.editAppendPath` | `true` | When `article.showEdit` is active, whether or not the path to the current article should be appended to the URL set at `article.editURL`. | -| `article.seriesOpened` | `false` | Whether or not the series module will be displayed open by default or not. | -| `article.showHeadingAnchors` | `true` | Whether or not heading anchor links are displayed alongside headings within articles. | -| `article.showPagination` | `true` | Whether or not the next/previous article links are displayed in the article footer. | -| `article.invertPagination` | `false` | Whether or not to flip the direction of the next/previous article links. | -| `article.showReadingTime` | `true` | Whether or not article reading times are displayed. | -| `article.showTableOfContents` | `false` | Whether or not the table of contents is displayed on articles. | -| `article.showTaxonomies` | `false` | Whether or not the taxonomies related to this article are displayed. | -| `article.showAuthorsBadges` | `false` | Whether the `authors` taxonomies are are displayed in the article or list header. This requires the setup of `multiple authors` and the `authors` taxonomy. Check [this page]({{< ref "multi-author" >}}) for more details on how to configure that feature. | -| `article.showWordCount` | `false` | Whether or not article word counts are displayed. | -| `article.showComments` | `false` | Whether or not the [comments partial]({{< ref "partials#comments" >}}) is included after the article footer. | +| Name | Default | Description | +| ------------------------------------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `article.showDate` | `true` | Whether or not article dates are displayed. | +| `article.showViews` | `false` | Whether or not article views are displayed. This requires firebase integrations to be enabled, look below. | +| `article.showLikes` | `false` | Whether or not article likes are displayed. This requires firebase integrations to be enabled, look below. | +| `article.showDateUpdated` | `false` | Whether or not the dates articles were updated are displayed. | +| `article.showAuthor` | `true` | Whether or not the author box is displayed in the article footer. | +| `article.showHero` | `false` | Whether the thumbnail image will be shown as a hero image within each article page. | +| `article.heroStyle` | _Not set_ | Style to display the hero image, valid options are: `basic`, `big`, `background`, `thumbAndBackground`. | +| `article.layoutBackgroundBlur` | `true` | Makes the background image in the background article heroStyle blur with the scroll | +| `article.layoutBackgroundHeaderSpace` | `true` | Add space between the header and the body. | +| `article.showBreadcrumbs` | `false` | Whether or not breadcrumbs are displayed in the article header. | +| `article.showDraftLabel` | `true` | Whether or not the draft indicator is shown next to articles when site is built with `--buildDrafts`. | +| `article.showEdit` | `false` | Whether or not the link to edit the article content should be displayed. | +| `article.editURL` | _Not set_ | When `article.showEdit` is active, the URL for the edit link. | +| `article.editAppendPath` | `true` | When `article.showEdit` is active, whether or not the path to the current article should be appended to the URL set at `article.editURL`. | +| `article.seriesOpened` | `false` | Whether or not the series module will be displayed open by default or not. | +| `article.showHeadingAnchors` | `true` | Whether or not heading anchor links are displayed alongside headings within articles. | +| `article.showPagination` | `true` | Whether or not the next/previous article links are displayed in the article footer. | +| `article.invertPagination` | `false` | Whether or not to flip the direction of the next/previous article links. | +| `article.showReadingTime` | `true` | Whether or not article reading times are displayed. | +| `article.showTableOfContents` | `false` | Whether or not the table of contents is displayed on articles. | +| `article.showTaxonomies` | `false` | Whether or not the taxonomies related to this article are displayed. | +| `article.showAuthorsBadges` | `false` | Whether the `authors` taxonomies are are displayed in the article or list header. This requires the setup of `multiple authors` and the `authors` taxonomy. Check [this page]({{< ref "multi-author" >}}) for more details on how to configure that feature. | +| `article.showWordCount` | `false` | Whether or not article word counts are displayed. | +| `article.showComments` | `false` | Whether or not the [comments partial]({{< ref "partials#comments" >}}) is included after the article footer. | | `article.showSummary` | `false` | Whether or not article summaries are displayed on list pages. If a summary is not provided in the [front matter]({{< ref "front-matter" >}}), one will be auto generated using the `summaryLength` parameter in the [site configuration](#site-configuration). | -| `article.sharingLinks` | _Not set_ | Which sharing links to display at the end of each article. When not provided, or set to `false` no links will be displayed. | +| `article.sharingLinks` | _Not set_ | Which sharing links to display at the end of each article. When not provided, or set to `false` no links will be displayed. | ### List @@ -223,7 +226,7 @@ Many of the article defaults here can be overridden on a per article basis by sp | `list.cardView` | `false` | Display lists as a gallery of cards. | | `list.cardViewScreenWidth` | `false` | Enhance the width of card galleries in lists to take the full width available. | | `list.constrainItemsWidth` | `false` | Limit item width to `prose` to increase readability. Useful when no feature images are available. | -| `list.showTableOfContents` | `false` | Whether or not the table of contents is displayed on articles. | +| `list.showTableOfContents` | `false` | Whether or not the table of contents is displayed on articles. | ### Sitemap diff --git a/i18n/bn.yaml b/i18n/bn.yaml index 71434172..0c5f0968 100644 --- a/i18n/bn.yaml +++ b/i18n/bn.yaml @@ -1,3 +1,6 @@ +global: + language: "๐Ÿ‡ง๐Ÿ‡ฉ" + article: anchor_label: "Anchor" date: "{{ .Date }}" diff --git a/i18n/cs.yaml b/i18n/cs.yaml index f5a3908c..32dfc798 100644 --- a/i18n/cs.yaml +++ b/i18n/cs.yaml @@ -1,3 +1,6 @@ +global: + language: "๐Ÿ‡จ๐Ÿ‡ฟ" + article: anchor_label: "Kotva" date: "{{ .Date }}" diff --git a/i18n/de.yaml b/i18n/de.yaml index e227f08c..e1fd76e8 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -1,3 +1,6 @@ +global: + language: "๐Ÿ‡ฉ๐Ÿ‡ช" + article: anchor_label: "Anker" date: "{{ .Date }}" diff --git a/i18n/es.yaml b/i18n/es.yaml index da866a03..31884f22 100644 --- a/i18n/es.yaml +++ b/i18n/es.yaml @@ -1,3 +1,6 @@ +global: + language: "๐Ÿ‡ช๐Ÿ‡ธ" + article: anchor_label: "Ancla" date: "{{ .Date }}" diff --git a/i18n/fi.yaml b/i18n/fi.yaml index 889a538e..c66827c5 100644 --- a/i18n/fi.yaml +++ b/i18n/fi.yaml @@ -1,3 +1,6 @@ +global: + language: "๐Ÿ‡ซ๐Ÿ‡ฎ" + article: anchor_label: "Ankkuri" date: "{{ .Date }}" diff --git a/i18n/fr.yaml b/i18n/fr.yaml index 3d03002e..5016d58c 100644 --- a/i18n/fr.yaml +++ b/i18n/fr.yaml @@ -1,3 +1,6 @@ +global: + language: "๐Ÿ‡ซ๐Ÿ‡ท" + article: anchor_label: "Ancre" date: "{{ .Date }}" diff --git a/i18n/he.yaml b/i18n/he.yaml index abef5192..39b3e575 100644 --- a/i18n/he.yaml +++ b/i18n/he.yaml @@ -1,3 +1,6 @@ +global: + language: "๐Ÿ‡ฎ๐Ÿ‡ฑ" + article: anchor_label: "ืขื•ื’ืŸ" date: "{{ .Date }}" diff --git a/i18n/hr.yaml b/i18n/hr.yaml index ce6debbf..64fa9b14 100644 --- a/i18n/hr.yaml +++ b/i18n/hr.yaml @@ -1,3 +1,6 @@ +global: + language: "๐Ÿ‡ญ๐Ÿ‡ท" + article: anchor_label: "Sidro" date: "{{ .Date }}" diff --git a/i18n/hu.yaml b/i18n/hu.yaml index 6798aac5..a13ed816 100644 --- a/i18n/hu.yaml +++ b/i18n/hu.yaml @@ -1,3 +1,6 @@ +global: + language: "๐Ÿ‡ญ๐Ÿ‡บ" + article: anchor_label: "Horgony" date: "{{ .Date }}" diff --git a/i18n/id.yaml b/i18n/id.yaml index 37de691a..5da3a252 100644 --- a/i18n/id.yaml +++ b/i18n/id.yaml @@ -1,3 +1,6 @@ +global: + language: "๐Ÿ‡ฎ๐Ÿ‡ฉ" + article: anchor_label: "Anchor" date: "{{ .Date }}" diff --git a/i18n/it.yaml b/i18n/it.yaml index 3e85cb3c..29ea00bf 100644 --- a/i18n/it.yaml +++ b/i18n/it.yaml @@ -1,3 +1,6 @@ +global: + language: "๐Ÿ‡ฎ๐Ÿ‡น" + article: anchor_label: "Ancora" date: "{{ .Date }}" diff --git a/i18n/ja.yaml b/i18n/ja.yaml index 927019eb..897573c9 100644 --- a/i18n/ja.yaml +++ b/i18n/ja.yaml @@ -1,3 +1,6 @@ +global: + language: "๐Ÿ‡ฏ๐Ÿ‡ต" + article: anchor_label: "ใ‚ขใƒณใ‚ซใƒผ" date: "{{ .Date }}" diff --git a/i18n/pl.yaml b/i18n/pl.yaml index 9fcc5454..04f94d8e 100644 --- a/i18n/pl.yaml +++ b/i18n/pl.yaml @@ -1,3 +1,6 @@ +global: + language: "๐Ÿ‡ต๐Ÿ‡ฑ" + article: anchor_label: "Kotwica" date: "{{ .Date }}" diff --git a/i18n/pt-BR.yaml b/i18n/pt-BR.yaml index 0755d0aa..b29edd38 100644 --- a/i18n/pt-BR.yaml +++ b/i18n/pt-BR.yaml @@ -1,3 +1,6 @@ +global: + language: "๐Ÿ‡ง๐Ÿ‡ท" + article: anchor_label: "ร‚ncora" date: "{{ .Date }}" diff --git a/i18n/ro.yaml b/i18n/ro.yaml index 959aac8e..64b8c1d9 100644 --- a/i18n/ro.yaml +++ b/i18n/ro.yaml @@ -1,3 +1,6 @@ +global: + language: "๐Ÿ‡ท๐Ÿ‡ด" + article: anchor_label: "Link" date: "{{ .Date }}" diff --git a/i18n/ru.yaml b/i18n/ru.yaml index f3f80df1..8f68df62 100644 --- a/i18n/ru.yaml +++ b/i18n/ru.yaml @@ -1,3 +1,6 @@ +global: + language: "๐Ÿ‡ท๐Ÿ‡บ" + article: anchor_label: "ะฏะบะพั€ัŒ" date: "{{ .Date }}" diff --git a/i18n/tr.yaml b/i18n/tr.yaml index 9e1f5e55..37c7635e 100644 --- a/i18n/tr.yaml +++ b/i18n/tr.yaml @@ -1,3 +1,6 @@ +global: + language: "๐Ÿ‡น๐Ÿ‡ท" + article: # anchor_label: "Anchor" date: "{{ .Date }}" diff --git a/i18n/zh-CN.yaml b/i18n/zh-CN.yaml index 875bb579..bf9a73f4 100644 --- a/i18n/zh-CN.yaml +++ b/i18n/zh-CN.yaml @@ -1,3 +1,6 @@ +global: + language: "๐Ÿ‡จ๐Ÿ‡ณ" + article: anchor_label: "้”š็‚น" date: "{{ .Date }}" diff --git a/i18n/zh-TW.yaml b/i18n/zh-TW.yaml index b7c8eaac..f43fed39 100644 --- a/i18n/zh-TW.yaml +++ b/i18n/zh-TW.yaml @@ -1,3 +1,6 @@ +global: + language: "๐Ÿ‡น๐Ÿ‡ผ" + article: anchor_label: "ๅฎšไฝ้ปž" date: "{{ .Date }}"