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 }}