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/exampleSite/go.mod b/exampleSite/go.mod index 3380dfb..2fd1ed0 100644 --- a/exampleSite/go.mod +++ b/exampleSite/go.mod @@ -27,4 +27,5 @@ require ( 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/hugomods/mermaid v0.1.1 // indirect + github.com/zeon-studio/hugoplate v0.0.0-20240513062835-d4274ad7e3df // indirect ) 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 8ec1348..283acba 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -48,7 +48,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) }}
@@ -80,7 +80,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 44835bf..6b85691 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..0a4c9bf 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "hugoplate", "description": "hugo tailwindcss boilerplate", - "version": "1.14.0", + "version": "1.15.1", "license": "MIT", "author": "zeon.studio", "scripts": { diff --git a/readme.md b/readme.md index f4c7516..27abcd2 100755 --- a/readme.md +++ b/readme.md @@ -5,12 +5,12 @@

      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+)🚀

      - - + +