From 1fcca8dec5af037753e26328f53dc0fd0f871b79 Mon Sep 17 00:00:00 2001 From: Somrat <58769763+tfsomrat@users.noreply.github.com> Date: Sun, 12 May 2024 14:07:39 +0600 Subject: [PATCH 1/4] update i18n translation --- exampleSite/i18n/en.yaml | 55 ++++++--------------- layouts/blog/single.html | 6 +-- layouts/partials/components/blog-card.html | 2 +- layouts/partials/components/breadcrumb.html | 6 +-- layouts/partials/page-header.html | 2 +- layouts/partials/widgets/categories.html | 2 +- layouts/partials/widgets/tags.html | 2 +- package.json | 2 +- 8 files changed, 25 insertions(+), 52 deletions(-) diff --git a/exampleSite/i18n/en.yaml b/exampleSite/i18n/en.yaml index b0230eb..4e6722f 100755 --- a/exampleSite/i18n/en.yaml +++ b/exampleSite/i18n/en.yaml @@ -1,41 +1,14 @@ -- id: home - translation: Home - -- id: read_more - translation: Read More - -- id: send - translation: Send - -- id: related_posts - translation: Related Posts - -- id: categories - translation: Categories - -- id: tags - translation: Tags - -- id: toc - translation: Table of Contents - -- id: share - translation: Share - -- id: search_input_placeholder - translation: Search Post ... - -- id: search_no_results - translation: No results for - -- id: search_initial_message - translation: Type something to search.. - -- id: search_navigate - translation: to navigate - -- id: search_select - translation: to select - -- id: search_close - translation: to close +home: Home +read_more: Read More +send: Send +related_posts: Related Posts +categories: Categories +tags: Tags +toc: Table of Contents +share: Share +search_input_placeholder: Search Post... +search_no_results: No results for +search_initial_message: Type something to search.. +search_navigate: to navigate +search_select: to select +search_close: to close diff --git a/layouts/blog/single.html b/layouts/blog/single.html index 4cabd91..87dcbfc 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -47,7 +47,7 @@ {{ $tags:= .Params.tags }} {{ if $tags }}
-
{{ i18n "tags" }} :
+
{{ T "tags" }} :
{{ end }}
- {{ partial "social-share" (dict "Context" . "Class" "share-icons" "Title" (i18n "share") "Whatsapp" false "Telegram" false "Linkedin" false "Pinterest" false "Tumblr" false "Vk" false) }} + {{ partial "social-share" (dict "Context" . "Class" "share-icons" "Title" (T "share") "Whatsapp" false "Telegram" false "Linkedin" false "Pinterest" false "Tumblr" false "Vk" false) }}
@@ -79,7 +79,7 @@ {{ $related = $related | shuffle | first 3 }} {{ with $related }}
-

{{ i18n "related_posts" }}

+

{{ T "related_posts" }}

{{ range . }}
diff --git a/layouts/partials/components/blog-card.html b/layouts/partials/components/blog-card.html index 72b864c..d0d5266 100644 --- a/layouts/partials/components/blog-card.html +++ b/layouts/partials/components/blog-card.html @@ -32,6 +32,6 @@ {{ end }}

{{ .Summary }}

- {{ i18n "read_more" }} + {{ T "read_more" }}
diff --git a/layouts/partials/components/breadcrumb.html b/layouts/partials/components/breadcrumb.html index b21939c..eba367c 100644 --- a/layouts/partials/components/breadcrumb.html +++ b/layouts/partials/components/breadcrumb.html @@ -6,7 +6,7 @@ diff --git a/layouts/partials/page-header.html b/layouts/partials/page-header.html index 860f053..c0b2baa 100755 --- a/layouts/partials/page-header.html +++ b/layouts/partials/page-header.html @@ -2,7 +2,7 @@
-

{{ i18n (printf "%s" (lower .Title)) | default .Title | title }}

+

{{ T (printf "%s" (lower .Title)) | default .Title | title }}

{{ partial "components/breadcrumb" (dict "Context" . "Class" "mt-6") }}
diff --git a/layouts/partials/widgets/categories.html b/layouts/partials/widgets/categories.html index 2acd197..1a0792b 100755 --- a/layouts/partials/widgets/categories.html +++ b/layouts/partials/widgets/categories.html @@ -2,7 +2,7 @@ {{ if isset site.Taxonomies "categories" }} {{ if not (eq (len site.Taxonomies.categories) 0) }}
-
{{ i18n "categories" }}
+
{{ T "categories" }}
    {{ range $name, $items := site.Taxonomies.categories }} diff --git a/layouts/partials/widgets/tags.html b/layouts/partials/widgets/tags.html index 48126ac..605b20c 100755 --- a/layouts/partials/widgets/tags.html +++ b/layouts/partials/widgets/tags.html @@ -2,7 +2,7 @@ {{ if isset site.Taxonomies "tags" }} {{ if not (eq (len site.Taxonomies.tags) 0) }}
    -
    {{ i18n "tags" }}
    +
    {{ T "tags" }}
      {{ range $name, $items := site.Taxonomies.tags }} diff --git a/package.json b/package.json index 5450bde..373c451 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "hugoplate", "description": "hugo tailwindcss boilerplate", - "version": "1.14.0", + "version": "1.15.0", "license": "MIT", "author": "zeon.studio", "scripts": { From d485d0e28f407b70a177ba81f3259fe8eba003fa Mon Sep 17 00:00:00 2001 From: Somrat <58769763+tfsomrat@users.noreply.github.com> Date: Sun, 12 May 2024 16:22:02 +0600 Subject: [PATCH 2/4] update font size on mobile --- assets/scss/base.scss | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/scss/base.scss b/assets/scss/base.scss index b568330..2fac7c2 100755 --- a/assets/scss/base.scss +++ b/assets/scss/base.scss @@ -3,7 +3,7 @@ html { } body { - @apply bg-body dark:bg-darkmode-body font-primary font-normal leading-relaxed text-text dark:text-darkmode-text; + @apply bg-body text-base dark:bg-darkmode-body font-primary font-normal leading-relaxed text-text dark:text-darkmode-text; } h1, diff --git a/package.json b/package.json index 373c451..0a4c9bf 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "hugoplate", "description": "hugo tailwindcss boilerplate", - "version": "1.15.0", + "version": "1.15.1", "license": "MIT", "author": "zeon.studio", "scripts": { From d4274ad7e3df2f2712094a2ffa9dfbb76e35a4b9 Mon Sep 17 00:00:00 2001 From: Farhad <94342419+tffarhad@users.noreply.github.com> Date: Mon, 13 May 2024 12:28:35 +0600 Subject: [PATCH 3/4] Update readme.md --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index f4c7516..3e2d28d 100755 --- a/readme.md +++ b/readme.md @@ -5,7 +5,7 @@

      Made with ♥ by Zeon Studio

      If you find this project useful, please give it a ⭐ to show your support.

      -

      👀 Demo | Page Speed (95+)🚀 +

      👀 Demo | Page Speed (95+)🚀

      From 428f3f591303c5f4a212f247d8da399e80b37dd0 Mon Sep 17 00:00:00 2001 From: Somrat <58769763+tfsomrat@users.noreply.github.com> Date: Wed, 15 May 2024 17:14:09 +0600 Subject: [PATCH 4/4] update readme file --- exampleSite/go.mod | 1 + readme.md | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/exampleSite/go.mod b/exampleSite/go.mod index 6879b04..9f1a275 100644 --- a/exampleSite/go.mod +++ b/exampleSite/go.mod @@ -26,4 +26,5 @@ require ( github.com/gethugothemes/hugo-modules/tab v0.0.0-20240504032439-79fc09d96848 // indirect github.com/gethugothemes/hugo-modules/table-of-contents v0.0.0-20240504032439-79fc09d96848 // indirect github.com/gethugothemes/hugo-modules/videos v0.0.0-20240504032439-79fc09d96848 // indirect + github.com/zeon-studio/hugoplate v0.0.0-20240513062835-d4274ad7e3df // indirect ) diff --git a/readme.md b/readme.md index 3e2d28d..27abcd2 100755 --- a/readme.md +++ b/readme.md @@ -9,8 +9,8 @@

      - - + +