diff --git a/.gitignore b/.gitignore index e61adca4..b2885807 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,5 @@ node_modules .Spotlight-V100 .Trashes .idea +.Ulysses-Group.plist +.Ulysses-Settings.plist \ No newline at end of file diff --git a/assets/icons/language.svg b/assets/icons/language.svg new file mode 100644 index 00000000..03bddd69 --- /dev/null +++ b/assets/icons/language.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/exampleSite/config/_default/languages.en.toml b/exampleSite/config/_default/languages.en.toml index 882fcea1..4cfc2531 100644 --- a/exampleSite/config/_default/languages.en.toml +++ b/exampleSite/config/_default/languages.en.toml @@ -4,14 +4,12 @@ weight = 1 title = "Blowfish" [params] - displayName = "EN" + displayName = "English" isoCode = "en" rtl = false dateFormat = "2 January 2006" logo = "img/blowfish_logo_transparent.png" - # secondaryLogo = "PATH" description = "A powerful, lightweight theme for Hugo." - # copyright = "Copy, _right?_ :thinking_face:" [author] name = "Blowfish" @@ -20,8 +18,5 @@ title = "Blowfish" bio = "A powerful, lightweight theme for Hugo." links = [ { x-twitter = "https://twitter.com/burufugu" }, - #{ mastodon = "https://masto.ai/@blowfish" }, { github = "https://github.com/nunocoracao/blowfish" }, - ] - - \ No newline at end of file + ] \ No newline at end of file diff --git a/exampleSite/content/docs/configuration/index.md b/exampleSite/content/docs/configuration/index.md index 38372b21..0abe430a 100644 --- a/exampleSite/content/docs/configuration/index.md +++ b/exampleSite/content/docs/configuration/index.md @@ -64,32 +64,32 @@ The theme currently supports the following languages by default: | Language | Code | | ------------------------------ | ------- | -| ๐Ÿ‡ฆ๐Ÿ‡ช Arabic | `ar` | -| ๐Ÿ‡ง๐Ÿ‡ฌ Bulgarian | `bg` | -| ๐Ÿ‡ง๐Ÿ‡ฉ Bengali | `bn` | -| ๐Ÿ‡ช๐Ÿ‡ธ Catalan | `ca` | -| ๐Ÿ‡จ๐Ÿ‡ฟ 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` | -| ๐Ÿ‡ฐ๐Ÿ‡ท Korean | `ko` | -| ๐Ÿ‡ต๐Ÿ‡ฑ Polish | `pl` | -| ๐Ÿ‡ง๐Ÿ‡ท Portuguese (Brazil) | `pt-br` | -| ๐Ÿ‡ต๐Ÿ‡น Portuguese (Portugal) | `pt-pt` | -| ๐Ÿ‡ท๐Ÿ‡ด Romanian | `ro` | -| ๐Ÿ‡ท๐Ÿ‡บ Russian | `ru` | -| ๐Ÿ‡น๐Ÿ‡ท Turkish | `tr` | -| ๐Ÿ‡ป๐Ÿ‡ณ Vietnamese | `vi` | -| ๐Ÿ‡จ๐Ÿ‡ณ Simplified Chinese (China) | `zh-cn` | -| ๐Ÿ‡น๐Ÿ‡ผ Traditional Chinese (Taiwan) | `zh-tw` | +| Arabic | `ar` | +| Bulgarian | `bg` | +| Bengali | `bn` | +| Catalan | `ca` | +| 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` | +| Korean | `ko` | +| Polish | `pl` | +| Portuguese (Brazil) | `pt-br` | +| Portuguese (Portugal) | `pt-pt` | +| Romanian | `ro` | +| Russian | `ru` | +| Turkish | `tr` | +| Vietnamese | `vi` | +| Simplified Chinese (China) | `zh-cn` | +| Traditional Chinese (Taiwan) | `zh-tw` | diff --git a/exampleSite/content/samples/icons/index.md b/exampleSite/content/samples/icons/index.md index f1343a9b..a702a222 100644 --- a/exampleSite/content/samples/icons/index.md +++ b/exampleSite/content/samples/icons/index.md @@ -61,6 +61,7 @@ The full list of built-in icons and their corresponding names can referenced bel | keybase | {{< icon keybase >}} | | kickstarter | {{< icon kickstarter >}} | | ko-fi | {{< icon ko-fi >}} | +| language | {{< icon language >}} | | lastfm | {{< icon lastfm >}} | | lightbulb | {{< icon lightbulb >}} | | link | {{< icon link >}} | @@ -101,7 +102,7 @@ The full list of built-in icons and their corresponding names can referenced bel | sun | {{< icon sun >}} | | tag | {{< icon tag >}} | | telegram | {{< icon telegram >}} | -| threads | {{< icon threads >}} | +| threads | {{< icon threads >}} | | tiktok | {{< icon tiktok >}} | | triangle-exclamation | {{< icon triangle-exclamation >}} | | tumblr | {{< icon tumblr >}} | diff --git a/i18n/bg.yaml b/i18n/bg.yaml index 0e66749c..83824961 100644 --- a/i18n/bg.yaml +++ b/i18n/bg.yaml @@ -1,5 +1,5 @@ global: - language: "๐Ÿ‡ง๐Ÿ‡ฌ" + language: "BG" article: anchor_label: "ะšะพั‚ะฒะฐ" diff --git a/i18n/bn.yaml b/i18n/bn.yaml index ef2b39c8..5f22f934 100644 --- a/i18n/bn.yaml +++ b/i18n/bn.yaml @@ -1,5 +1,5 @@ global: - language: "๐Ÿ‡ง๐Ÿ‡ฉ" + language: "BN" article: anchor_label: "Anchor" diff --git a/i18n/cs.yaml b/i18n/cs.yaml index a52ce41c..d4f45122 100644 --- a/i18n/cs.yaml +++ b/i18n/cs.yaml @@ -1,5 +1,5 @@ global: - language: "๐Ÿ‡จ๐Ÿ‡ฟ" + language: "CS" article: anchor_label: "Kotva" diff --git a/i18n/de.yaml b/i18n/de.yaml index 1fa0c8e0..7a49d204 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -1,5 +1,5 @@ global: - language: "๐Ÿ‡ฉ๐Ÿ‡ช" + language: "DE" article: anchor_label: "Anker" diff --git a/i18n/en.yaml b/i18n/en.yaml index a387b85d..9987590e 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -1,5 +1,5 @@ global: - language: "๐Ÿ‡ฌ๐Ÿ‡ง" + language: "EN" article: anchor_label: "Anchor" diff --git a/i18n/es.yaml b/i18n/es.yaml index 4c10f3b3..99e844bf 100644 --- a/i18n/es.yaml +++ b/i18n/es.yaml @@ -1,5 +1,5 @@ global: - language: "๐Ÿ‡ช๐Ÿ‡ธ" + language: "ES" article: anchor_label: "Ancla" diff --git a/i18n/fi.yaml b/i18n/fi.yaml index a57ee467..1b7ce62f 100644 --- a/i18n/fi.yaml +++ b/i18n/fi.yaml @@ -1,5 +1,5 @@ global: - language: "๐Ÿ‡ซ๐Ÿ‡ฎ" + language: "FI" article: anchor_label: "Ankkuri" diff --git a/i18n/fr.yaml b/i18n/fr.yaml index 21c5e0ef..942b73b0 100644 --- a/i18n/fr.yaml +++ b/i18n/fr.yaml @@ -1,5 +1,5 @@ global: - language: "๐Ÿ‡ซ๐Ÿ‡ท" + language: "FR" article: anchor_label: "Ancre" diff --git a/i18n/he.yaml b/i18n/he.yaml index 458dacfc..acbaed09 100644 --- a/i18n/he.yaml +++ b/i18n/he.yaml @@ -1,5 +1,5 @@ global: - language: "๐Ÿ‡ฎ๐Ÿ‡ฑ" + language: "HE" article: anchor_label: "ืขื•ื’ืŸ" diff --git a/i18n/hr.yaml b/i18n/hr.yaml index a52dceb0..6217f01d 100644 --- a/i18n/hr.yaml +++ b/i18n/hr.yaml @@ -1,5 +1,5 @@ global: - language: "๐Ÿ‡ญ๐Ÿ‡ท" + language: "HR" article: anchor_label: "Sidro" diff --git a/i18n/hu.yaml b/i18n/hu.yaml index d90f42ff..a8eedcf5 100644 --- a/i18n/hu.yaml +++ b/i18n/hu.yaml @@ -1,5 +1,5 @@ global: - language: "๐Ÿ‡ญ๐Ÿ‡บ" + language: "HU" article: anchor_label: "Horgony" diff --git a/i18n/id.yaml b/i18n/id.yaml index 93a6fead..d94b6dbb 100644 --- a/i18n/id.yaml +++ b/i18n/id.yaml @@ -1,5 +1,5 @@ global: - language: "๐Ÿ‡ฎ๐Ÿ‡ฉ" + language: "ID" article: anchor_label: "Anchor" diff --git a/i18n/it.yaml b/i18n/it.yaml index 1daf627d..5ba0ef38 100644 --- a/i18n/it.yaml +++ b/i18n/it.yaml @@ -1,5 +1,5 @@ global: - language: "๐Ÿ‡ฎ๐Ÿ‡น" + language: "IT" article: anchor_label: "Ancora" diff --git a/i18n/ja.yaml b/i18n/ja.yaml index d25cc63e..d5f6cec9 100644 --- a/i18n/ja.yaml +++ b/i18n/ja.yaml @@ -1,5 +1,5 @@ global: - language: "๐Ÿ‡ฏ๐Ÿ‡ต" + language: "JA" article: anchor_label: "ใ‚ขใƒณใ‚ซใƒผ" diff --git a/i18n/pl.yaml b/i18n/pl.yaml index a28bf4e0..fac04d53 100644 --- a/i18n/pl.yaml +++ b/i18n/pl.yaml @@ -1,5 +1,5 @@ global: - language: "๐Ÿ‡ต๐Ÿ‡ฑ" + language: "PL" article: anchor_label: "Kotwica" diff --git a/i18n/pt-BR.yaml b/i18n/pt-BR.yaml index a4a92520..459b8b68 100644 --- a/i18n/pt-BR.yaml +++ b/i18n/pt-BR.yaml @@ -1,5 +1,5 @@ global: - language: "๐Ÿ‡ง๐Ÿ‡ท" + language: "PT-BR" article: anchor_label: "ร‚ncora" diff --git a/i18n/pt-PT.yaml b/i18n/pt-PT.yaml index 6065e2c1..5f61c6bb 100644 --- a/i18n/pt-PT.yaml +++ b/i18n/pt-PT.yaml @@ -1,5 +1,5 @@ global: - language: "๐Ÿ‡ต๐Ÿ‡น" + language: "PT-PT" article: anchor_label: "Etiqueta" diff --git a/i18n/ro.yaml b/i18n/ro.yaml index 17279a51..71ab4f43 100644 --- a/i18n/ro.yaml +++ b/i18n/ro.yaml @@ -1,5 +1,5 @@ global: - language: "๐Ÿ‡ท๐Ÿ‡ด" + language: "RO" article: anchor_label: "Link" diff --git a/i18n/ru.yaml b/i18n/ru.yaml index 6c8390c2..f18b0cb8 100644 --- a/i18n/ru.yaml +++ b/i18n/ru.yaml @@ -1,5 +1,5 @@ global: - language: "๐Ÿ‡ท๐Ÿ‡บ" + language: "RU" article: anchor_label: "ะฏะบะพั€ัŒ" diff --git a/i18n/tr.yaml b/i18n/tr.yaml index b20fcd8a..c3a762dd 100644 --- a/i18n/tr.yaml +++ b/i18n/tr.yaml @@ -1,5 +1,5 @@ global: - language: "๐Ÿ‡น๐Ÿ‡ท" + language: "TR" article: # anchor_label: "Anchor" diff --git a/i18n/vi.yaml b/i18n/vi.yaml index 80e68ff3..e43ed79e 100644 --- a/i18n/vi.yaml +++ b/i18n/vi.yaml @@ -1,5 +1,5 @@ global: - language: "๐Ÿ‡ป๐Ÿ‡ณ" + language: "VI" article: anchor_label: "Neo" diff --git a/i18n/zh-CN.yaml b/i18n/zh-CN.yaml index 4cf74e25..ccedd917 100644 --- a/i18n/zh-CN.yaml +++ b/i18n/zh-CN.yaml @@ -1,5 +1,5 @@ global: - language: "๐Ÿ‡จ๐Ÿ‡ณ" + language: "ZN-CN" article: anchor_label: "้”š็‚น" diff --git a/i18n/zh-TW.yaml b/i18n/zh-TW.yaml index a4dda0af..9940bc15 100644 --- a/i18n/zh-TW.yaml +++ b/i18n/zh-TW.yaml @@ -1,5 +1,5 @@ global: - language: "๐Ÿ‡น๐Ÿ‡ผ" + language: "ZH-TW" article: anchor_label: "ๅฎšไฝ้ปž" diff --git a/layouts/partials/translations.html b/layouts/partials/translations.html index b6d83391..3a67e6a9 100644 --- a/layouts/partials/translations.html +++ b/layouts/partials/translations.html @@ -1,9 +1,12 @@ {{ if .IsTranslated }}
- + + {{ partial "icon.html" "language" }} + +