From 6c3900962efbcc9f7f1b094ae09da265eb732a16 Mon Sep 17 00:00:00 2001 From: Aryan Kothari <87589047+thearyadev@users.noreply.github.com> Date: Sat, 30 Dec 2023 02:17:04 +0000 Subject: [PATCH 1/2] set tabwidth to 4 --- .prettierrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.prettierrc b/.prettierrc index ee30508..01f8ac0 100644 --- a/.prettierrc +++ b/.prettierrc @@ -6,7 +6,8 @@ "options": { "parser": "go-template", "goTemplateBracketSpacing": true, - "bracketSameLine": true + "bracketSameLine": true, + "tabWidth": 4 } } ] From ab9c7468229821b3a8d433584e5e59d066f6f803 Mon Sep 17 00:00:00 2001 From: Aryan Kothari <87589047+thearyadev@users.noreply.github.com> Date: Sat, 30 Dec 2023 02:20:31 +0000 Subject: [PATCH 2/2] reformat to 4 tabWidth --- layouts/about/list.html | 29 +- .../partials/components/theme-switcher.html | 14 +- layouts/partials/page-header.html | 12 +- themes/hugoplate/layouts/404.html | 47 +-- themes/hugoplate/layouts/_default/baseof.html | 88 +++--- themes/hugoplate/layouts/_default/list.html | 32 +-- themes/hugoplate/layouts/_default/single.html | 22 +- .../hugoplate/layouts/_default/taxonomy.html | 32 +-- themes/hugoplate/layouts/_default/terms.html | 76 ++--- themes/hugoplate/layouts/about/list.html | 20 +- themes/hugoplate/layouts/authors/list.html | 24 +- themes/hugoplate/layouts/authors/single.html | 90 +++--- themes/hugoplate/layouts/blog/list.html | 48 ++-- themes/hugoplate/layouts/blog/single.html | 168 +++++------ themes/hugoplate/layouts/contact/list.html | 221 +++++++------- themes/hugoplate/layouts/index.html | 271 +++++++++--------- .../layouts/partials/call-to-action.html | 58 ++-- .../partials/components/author-card.html | 57 ++-- .../partials/components/blog-card.html | 66 ++--- .../partials/components/breadcrumb.html | 42 +-- .../components/language-switcher.html | 36 +-- .../partials/components/pagination.html | 240 ++++++++-------- .../partials/components/theme-switcher.html | 68 ++--- .../components/tw-size-indicator.html | 14 +- .../layouts/partials/essentials/footer.html | 107 +++---- .../layouts/partials/essentials/head.html | 6 +- .../layouts/partials/essentials/header.html | 264 +++++++++-------- .../layouts/partials/essentials/script.html | 24 +- .../layouts/partials/essentials/style.html | 30 +- .../layouts/partials/page-header.html | 12 +- .../layouts/partials/widgets/categories.html | 42 +-- .../layouts/partials/widgets/tags.html | 41 +-- .../partials/widgets/widget-wrapper.html | 2 +- 33 files changed, 1172 insertions(+), 1131 deletions(-) diff --git a/layouts/about/list.html b/layouts/about/list.html index e502148..2aebbea 100644 --- a/layouts/about/list.html +++ b/layouts/about/list.html @@ -1,17 +1,18 @@ {{ define "main" }} -
-
-
-
-
-

{{ .Title }}

-
{{ .Content }}
-
-
- {{ partial "image" (dict "Src" .Params.image "Alt" .Title "Class" "mx-auto mb-6" "Size" .Params.image_size) }} -
+
+
+
+
+
+

{{ .Title }}

+
{{ .Content }}
+
+
+ {{ partial "image" (dict "Src" .Params.image "Alt" .Title "Class" "mx-auto mb-6" "Size" .Params.image_size) }} +
+
+
-
-
-
+ {{ end }} diff --git a/layouts/partials/components/theme-switcher.html b/layouts/partials/components/theme-switcher.html index f6c1b8a..b016fe0 100644 --- a/layouts/partials/components/theme-switcher.html +++ b/layouts/partials/components/theme-switcher.html @@ -6,12 +6,12 @@ {{ $class := .Class }} {{ if site.Params.theme_switcher }} - + if (!document.documentElement.classList.contains("light")) { + document.documentElement.classList.add("light"); + } + {{ end }} diff --git a/layouts/partials/page-header.html b/layouts/partials/page-header.html index cf03028..cc0b120 100644 --- a/layouts/partials/page-header.html +++ b/layouts/partials/page-header.html @@ -1,9 +1,9 @@
-
-
-

{{ .Title | title }}

- {{ partial "components/breadcrumb" (dict "Context" . "Class" "mt-6") }} +
+
+

{{ .Title | title }}

+ {{ partial "components/breadcrumb" (dict "Context" . "Class" "mt-6") }} +
-
diff --git a/themes/hugoplate/layouts/404.html b/themes/hugoplate/layouts/404.html index 9d174c6..da550f6 100644 --- a/themes/hugoplate/layouts/404.html +++ b/themes/hugoplate/layouts/404.html @@ -1,26 +1,27 @@ {{ define "main" }} -
-
-
-
- - 404 - -

Page not found

-
-

- The page you are looking for might have been removed, had its name - changed, or is temporarily unavailable. -

-
- - Back to home - +
+
+
+
+ + 404 + +

Page not found

+
+

+ The page you are looking for might have been + removed, had its name changed, or is temporarily + unavailable. +

+
+ + Back to home + +
+
-
-
-
+ {{ end }} diff --git a/themes/hugoplate/layouts/_default/baseof.html b/themes/hugoplate/layouts/_default/baseof.html index 3460451..cbebeef 100644 --- a/themes/hugoplate/layouts/_default/baseof.html +++ b/themes/hugoplate/layouts/_default/baseof.html @@ -1,47 +1,47 @@ - - - {{ partial "essentials/head.html" . }} - - - - {{ partialCached "essentials/style.html" . }} - - - - - {{ if hugo.IsProduction }} - {{ partialCached "preloader.html" . }} - {{ partialCached "gtm-noscript.html" . }} - {{ else }} - {{ partial "preloader.html" . }} - - - - {{ partial "components/tw-size-indicator.html" . }} - {{ end }} - - - - {{ partial "essentials/header.html" . }} - {{ partial "search-modal.html" (dict "Context" . ) }} - - -
- {{ block "main" . }}{{ end }} -
- - - {{ if hugo.IsProduction }} - {{ partialCached "essentials/footer.html" . }} - {{ partialCached "essentials/script.html" . }} - {{ else }} - {{ partial "essentials/footer.html" . }} - {{ partial "essentials/script.html" . }} - {{ end }} - + itemscope + lang="{{ site.LanguageCode | default `en-US` }}" + itemtype="http://schema.org/WebPage"> + + + {{ partial "essentials/head.html" . }} + + + + {{ partialCached "essentials/style.html" . }} + + + + + {{ if hugo.IsProduction }} + {{ partialCached "preloader.html" . }} + {{ partialCached "gtm-noscript.html" . }} + {{ else }} + {{ partial "preloader.html" . }} + + + + {{ partial "components/tw-size-indicator.html" . }} + {{ end }} + + + + {{ partial "essentials/header.html" . }} + {{ partial "search-modal.html" (dict "Context" . ) }} + + +
+ {{ block "main" . }}{{ end }} +
+ + + {{ if hugo.IsProduction }} + {{ partialCached "essentials/footer.html" . }} + {{ partialCached "essentials/script.html" . }} + {{ else }} + {{ partial "essentials/footer.html" . }} + {{ partial "essentials/script.html" . }} + {{ end }} + diff --git a/themes/hugoplate/layouts/_default/list.html b/themes/hugoplate/layouts/_default/list.html index 457b96f..6c819bb 100644 --- a/themes/hugoplate/layouts/_default/list.html +++ b/themes/hugoplate/layouts/_default/list.html @@ -1,20 +1,20 @@ {{ define "main" }} - {{ partial "page-header" . }} + {{ partial "page-header" . }} -
-
- -
-
+
+
+ +
+
{{ end }} diff --git a/themes/hugoplate/layouts/_default/single.html b/themes/hugoplate/layouts/_default/single.html index 5e2cb0f..2bfe287 100644 --- a/themes/hugoplate/layouts/_default/single.html +++ b/themes/hugoplate/layouts/_default/single.html @@ -1,16 +1,16 @@ {{ define "main" }} - {{ partial "page-header" . }} + {{ partial "page-header" . }} -
-
-
-
-
- {{ .Content }} -
+
+
+
+
+
+ {{ .Content }} +
+
+
-
-
-
+ {{ end }} diff --git a/themes/hugoplate/layouts/_default/taxonomy.html b/themes/hugoplate/layouts/_default/taxonomy.html index ec083f8..9efd8cd 100644 --- a/themes/hugoplate/layouts/_default/taxonomy.html +++ b/themes/hugoplate/layouts/_default/taxonomy.html @@ -1,21 +1,21 @@ {{ define "main" }} - {{ partial "page-header" . }} + {{ partial "page-header" . }} -
-
-
- -
-
- {{ range .Data.Pages }} -
- {{ partial "components/blog-card" . }} -
- {{ end }} -
+
+
+
+ +
+
+ {{ range .Data.Pages }} +
+ {{ partial "components/blog-card" . }} +
+ {{ end }} +
+
+
-
-
-
+ {{ end }} diff --git a/themes/hugoplate/layouts/_default/terms.html b/themes/hugoplate/layouts/_default/terms.html index 7e6f648..44197c0 100644 --- a/themes/hugoplate/layouts/_default/terms.html +++ b/themes/hugoplate/layouts/_default/terms.html @@ -1,41 +1,43 @@ {{ define "main" }} - {{ partial "page-header" . }} + {{ partial "page-header" . }} -
-
- -
-
+
+
+ +
+
{{ end }} diff --git a/themes/hugoplate/layouts/about/list.html b/themes/hugoplate/layouts/about/list.html index b338f21..80b9a78 100644 --- a/themes/hugoplate/layouts/about/list.html +++ b/themes/hugoplate/layouts/about/list.html @@ -1,13 +1,13 @@ {{ define "main" }} -
-
-
-
- {{ partial "image" (dict "Src" .Params.image "Alt" .Title "Class" "mx-auto mb-6" "Size" "200x200") }} -

{{ .Title }}

-
{{ .Content }}
+
+
+
+
+ {{ partial "image" (dict "Src" .Params.image "Alt" .Title "Class" "mx-auto mb-6" "Size" "200x200") }} +

{{ .Title }}

+
{{ .Content }}
+
+
-
-
-
+ {{ end }} diff --git a/themes/hugoplate/layouts/authors/list.html b/themes/hugoplate/layouts/authors/list.html index e45cd39..cb426a5 100644 --- a/themes/hugoplate/layouts/authors/list.html +++ b/themes/hugoplate/layouts/authors/list.html @@ -1,16 +1,16 @@ {{ define "main" }} - {{ partial "page-header" . }} + {{ partial "page-header" . }} -
-
-
- {{ range .RegularPages }} -
- {{ partial "components/author-card" . }} -
- {{ end }} -
-
-
+
+
+
+ {{ range .RegularPages }} +
+ {{ partial "components/author-card" . }} +
+ {{ end }} +
+
+
{{ end }} diff --git a/themes/hugoplate/layouts/authors/single.html b/themes/hugoplate/layouts/authors/single.html index 36cd1b0..b249428 100644 --- a/themes/hugoplate/layouts/authors/single.html +++ b/themes/hugoplate/layouts/authors/single.html @@ -1,48 +1,48 @@ {{ define "main" }} -
-
-
-
- {{ $image:= .Params.image }} - {{ if $image }} - {{ partial "image" (dict "Src" $image "Alt" .Title "Class" "mx-auto" "Size" "200x200") }} - {{ else if .Params.Email }} - {{ .Title }} - {{ end }} -

{{ .Title }}

-
- {{ .Content }} -
- -
-
+
+
+
+
+ {{ $image:= .Params.image }} + {{ if $image }} + {{ partial "image" (dict "Src" $image "Alt" .Title "Class" "mx-auto" "Size" "200x200") }} + {{ else if .Params.Email }} + {{ .Title }} + {{ end }} +

{{ .Title }}

+
+ {{ .Content }} +
+ +
+
-
- {{ $filterByAuthor := where site.RegularPages "Params.author" "==" .Title }} - {{ range $filterByAuthor }} -
- {{ partial "components/blog-card" . }} -
- {{ end }} -
-
-
+
+ {{ $filterByAuthor := where site.RegularPages "Params.author" "==" .Title }} + {{ range $filterByAuthor }} +
+ {{ partial "components/blog-card" . }} +
+ {{ end }} +
+
+
{{ end }} diff --git a/themes/hugoplate/layouts/blog/list.html b/themes/hugoplate/layouts/blog/list.html index 84b56e9..642959b 100644 --- a/themes/hugoplate/layouts/blog/list.html +++ b/themes/hugoplate/layouts/blog/list.html @@ -1,29 +1,29 @@ {{ define "main" }} - {{ partial "page-header" . }} + {{ partial "page-header" . }} -
-
-
- -
-
- {{ $paginator:= .Paginate .RegularPages }} - {{ range $paginator.Pages }} -
- {{ partial "components/blog-card" . }} -
- {{ end }} -
- {{ partial "components/pagination.html" . }} +
+
+
+ +
+
+ {{ $paginator:= .Paginate .RegularPages }} + {{ range $paginator.Pages }} +
+ {{ partial "components/blog-card" . }} +
+ {{ end }} +
+ {{ partial "components/pagination.html" . }} +
+ +
+ + {{ $widget:= site.Params.widgets.sidebar }} + {{ partialCached "widgets/widget-wrapper" ( dict "Widgets" $widget "Scope" . ) }} +
+
- -
- - {{ $widget:= site.Params.widgets.sidebar }} - {{ partialCached "widgets/widget-wrapper" ( dict "Widgets" $widget "Scope" . ) }} -
-
-
-
+ {{ end }} diff --git a/themes/hugoplate/layouts/blog/single.html b/themes/hugoplate/layouts/blog/single.html index fd44621..b7d8c24 100644 --- a/themes/hugoplate/layouts/blog/single.html +++ b/themes/hugoplate/layouts/blog/single.html @@ -1,90 +1,90 @@ {{ define "main" }} -
-
-
-
- {{ $image:= .Params.image }} - {{ if $image }} -
- {{ partial "image" (dict "Src" $image "Alt" .Title "Class" "w-full rounded") }} +
+
+
+
+ {{ $image:= .Params.image }} + {{ if $image }} +
+ {{ partial "image" (dict "Src" $image "Alt" .Title "Class" "w-full rounded") }} +
+ {{ end }} +

+ {{ .Title }} +

+ +
+ {{ .Content }} +
+
+
+
{{ i18n "tags" }} :
+ +
+
+ {{ partial "social-share" (dict "Context" . "Class" "share-icons" "Title" (i18n "share") "Whatsapp" false "Telegram" false) }} +
+
+ + {{ if site.DisqusShortname }} +
+ {{ template "_internal/disqus.html" . }} +
+ {{ end }} +
- {{ end }} -

- {{ .Title }} -

- -
- {{ .Content }} -
-
-
-
{{ i18n "tags" }} :
- -
-
- {{ partial "social-share" (dict "Context" . "Class" "share-icons" "Title" (i18n "share") "Whatsapp" false "Telegram" false) }} -
-
- - {{ if site.DisqusShortname }} -
- {{ template "_internal/disqus.html" . }} -
- {{ end }} -
-
- - {{ $related := (where site.RegularPages "Section" "in" site.Params.mainSections) | intersect (where site.RegularPages ".Title" "!=" .Title) | union (site.RegularPages.Related . ) }} - {{ $related = $related | shuffle | first 3 }} - {{ with $related }} -
-

{{ i18n "related_posts" }}

-
- {{ range . }} -
- {{ partial "components/blog-card" . }} -
+ + {{ $related := (where site.RegularPages "Section" "in" site.Params.mainSections) | intersect (where site.RegularPages ".Title" "!=" .Title) | union (site.RegularPages.Related . ) }} + {{ $related = $related | shuffle | first 3 }} + {{ with $related }} +
+

{{ i18n "related_posts" }}

+
+ {{ range . }} +
+ {{ partial "components/blog-card" . }} +
+ {{ end }} +
+
{{ end }} -
- {{ end }} -
-
+ {{ end }} diff --git a/themes/hugoplate/layouts/contact/list.html b/themes/hugoplate/layouts/contact/list.html index 207f889..ebaf4c7 100644 --- a/themes/hugoplate/layouts/contact/list.html +++ b/themes/hugoplate/layouts/contact/list.html @@ -1,120 +1,125 @@ {{ define "main" }} - {{ partial "page-header" . }} + {{ partial "page-header" . }} -
-
-
-
-
-
- - +
+
+
+
+ +
+ + +
+
+ + +
+
+ + +
+ + +
-
- - -
-
- - -
- -
-
-
-
+ - - {{ with site.Params.google_map }} - {{ if .enable }} -
+ + {{ with site.Params.google_map }} + {{ if .enable }} +
+ {{ end }} {{ end }} - {{ end }} - {{ with site.Params.subscription }} - {{ if .enable }} - -
-
- - -
- - -
-
- - -
- - + {{ with site.Params.subscription }} + {{ if .enable }} + +
+
+ + +
+ + +
+
+ + +
+ + + {{ end }} {{ end }} - {{ end }} - {{ if site.Params.google_map.enable }} - {{ $gmap:= resources.Get "plugins/maps/google-map.js" }} - - - {{ end }} + {{ if site.Params.google_map.enable }} + {{ $gmap:= resources.Get "plugins/maps/google-map.js" }} + + + {{ end }} {{ end }} diff --git a/themes/hugoplate/layouts/index.html b/themes/hugoplate/layouts/index.html index 4ce2489..62c1f06 100644 --- a/themes/hugoplate/layouts/index.html +++ b/themes/hugoplate/layouts/index.html @@ -1,139 +1,150 @@ {{ define "main" }} - - {{ with .Params.banner }} -
-
-
-
-

- {{ .title | markdownify }} -

-

- {{ .content | markdownify }} -

- {{ with .button }} - {{ if .enable }} - - {{ .label }} - - - {{ end }} - {{ end }} -
-
- {{ partial "image" (dict "Src" .image "Alt" "Banner image" "Loading" "eager" "Class" "mx-auto" "Size" "800x") }} -
-
-
-
- {{ end }} - - - - {{ range $i, $e:= .Params.features }} -
-
-
-
- {{ partial "image" (dict "Src" .image "Alt" "feature image") }} -
-
-

- {{ .title | markdownify }} -

-

- {{ .content | markdownify }} -

-
    - {{ range .bulletpoints }} -
  • - - {{ . | markdownify }} -
  • - {{ end }} -
- {{ with .button }} - {{ if .enable }} - - {{ .label }} - - - {{ end }} - {{ end }} -
-
-
-
- {{ end }} - + + {{ with .Params.banner }} +
+
+
+
+

+ {{ .title | markdownify }} +

+

+ {{ .content | markdownify }} +

+ {{ with .button }} + {{ if .enable }} + + {{ .label }} + + + {{ end }} + {{ end }} +
+
+ {{ partial "image" (dict "Src" .image "Alt" "Banner image" "Loading" "eager" "Class" "mx-auto" "Size" "800x") }} +
+
+
+
+ {{ end }} + - - {{ with site.GetPage "sections/testimonial" }} - {{ if .Params.enable }} -
-
-
-
-

- {{ .Title | markdownify }} -

-

- {{ .Params.description | markdownify }} -

+ + {{ range $i, $e:= .Params.features }} +
+
+
+
+ {{ partial "image" (dict "Src" .image "Alt" "feature image") }} +
+
+

+ {{ .title | markdownify }} +

+

+ {{ .content | markdownify }} +

+
    + {{ range .bulletpoints }} +
  • + + {{ . | markdownify }} +
  • + {{ end }} +
+ {{ with .button }} + {{ if .enable }} + + {{ .label }} + + + {{ end }} + {{ end }} +
+
-
-
-
- {{ range .Params.testimonials }} -
-
-
- - - -
-
- {{ .content | markdownify }} -
-
-
- {{ partial "image" (dict "Src" .avatar "Size" "50x50" "Class" "rounded-full" "Alt" .name) }} -
-
-

- {{ .name }} -

-

- {{ .designation | markdownify }} +

+ {{ end }} + + + + {{ with site.GetPage "sections/testimonial" }} + {{ if .Params.enable }} +
+
+
+
+

+ {{ .Title | markdownify }} +

+

+ {{ .Params.description | markdownify }}

-
-
+
+
+
+ {{ range .Params.testimonials }} +
+
+
+ + + +
+
+ {{ .content | markdownify }} +
+
+
+ {{ partial "image" (dict "Src" .avatar "Size" "50x50" "Class" "rounded-full" "Alt" .name) }} +
+
+

+ {{ .name }} +

+

+ {{ .designation | markdownify }} +

+
+
+
+
+ {{ end }} +
+
+
+
- {{ end }}
-
-
- - - -
+ + {{ end }} {{ end }} - {{ end }} - + {{ end }} diff --git a/themes/hugoplate/layouts/partials/call-to-action.html b/themes/hugoplate/layouts/partials/call-to-action.html index dce0837..eb03416 100644 --- a/themes/hugoplate/layouts/partials/call-to-action.html +++ b/themes/hugoplate/layouts/partials/call-to-action.html @@ -1,33 +1,35 @@ {{ with site.GetPage "sections/call-to-action" }} - {{ if .Params.enable }} -
-
-
-
-
- {{ partial "image" (dict "Src" .image "Alt" "call to action" "Class" "w-full") }} + {{ if .Params.enable }} +
+
+
+
+
+ {{ partial "image" (dict "Src" .image "Alt" "call to action" "Class" "w-full") }} +
+
+

+ {{ .Title | markdownify }} +

+

+ {{ .Params.description | markdownify }} +

+ {{ with .Params.button }} + {{ if .enable }} + + {{ .label }} + + {{ end }} + {{ end }} +
+
+
-
-

- {{ .Title | markdownify }} -

-

- {{ .Params.description | markdownify }} -

- {{ with .Params.button }} - {{ if .enable }} - - {{ .label }} - - {{ end }} - {{ end }} -
-
-
-
-
- {{ end }} + + {{ end }} {{ end }} diff --git a/themes/hugoplate/layouts/partials/components/author-card.html b/themes/hugoplate/layouts/partials/components/author-card.html index 23988af..daf7d33 100644 --- a/themes/hugoplate/layouts/partials/components/author-card.html +++ b/themes/hugoplate/layouts/partials/components/author-card.html @@ -1,30 +1,33 @@
- {{ $image:= .Params.image }} - {{ if $image }} - {{ partial "image" (dict "Src" $image "Alt" .Title "Class" "mx-auto mb-6 rounded" "size" "120x120") }} - {{ else if .Params.Email }} - {{ .Title }} - {{ end }} -

- {{ .Title }} -

-

- {{ .Summary }} -

- +

+ {{ .Title }} +

+

+ {{ .Summary }} +

+
diff --git a/themes/hugoplate/layouts/partials/components/blog-card.html b/themes/hugoplate/layouts/partials/components/blog-card.html index 5e54cef..7cef7a6 100644 --- a/themes/hugoplate/layouts/partials/components/blog-card.html +++ b/themes/hugoplate/layouts/partials/components/blog-card.html @@ -1,35 +1,37 @@
- {{ $image:= .Params.image }} - {{ if $image }} - {{ partial "image" (dict "Src" $image "Alt" .Title "Class" "mb-6 w-full rounded") }} - {{ end }} -

- - {{ .Title }} - -

- -

{{ .Summary }}

- - {{ i18n "read_more" }} - + + +

{{ .Summary }}

+ + {{ i18n "read_more" }} +
diff --git a/themes/hugoplate/layouts/partials/components/breadcrumb.html b/themes/hugoplate/layouts/partials/components/breadcrumb.html index 9a0a0ef..c236c35 100644 --- a/themes/hugoplate/layouts/partials/components/breadcrumb.html +++ b/themes/hugoplate/layouts/partials/components/breadcrumb.html @@ -4,29 +4,29 @@ diff --git a/themes/hugoplate/layouts/partials/components/language-switcher.html b/themes/hugoplate/layouts/partials/components/language-switcher.html index d1de458..c886eef 100644 --- a/themes/hugoplate/layouts/partials/components/language-switcher.html +++ b/themes/hugoplate/layouts/partials/components/language-switcher.html @@ -7,22 +7,22 @@ {{ $pageLink := replace (replace $context.RelPermalink (add $pageLang "/") "") $base.Path "/" }} {{ if $context.IsTranslated }} - + {{ end }} diff --git a/themes/hugoplate/layouts/partials/components/pagination.html b/themes/hugoplate/layouts/partials/components/pagination.html index 6701887..b59a70e 100644 --- a/themes/hugoplate/layouts/partials/components/pagination.html +++ b/themes/hugoplate/layouts/partials/components/pagination.html @@ -9,130 +9,130 @@ {{ $upper_limit := (sub $paginator.TotalPages $adjacent_links) }} {{ if gt $paginator.TotalPages 1 }} - {{ end }} diff --git a/themes/hugoplate/layouts/partials/components/theme-switcher.html b/themes/hugoplate/layouts/partials/components/theme-switcher.html index a67d56c..c28a920 100644 --- a/themes/hugoplate/layouts/partials/components/theme-switcher.html +++ b/themes/hugoplate/layouts/partials/components/theme-switcher.html @@ -1,40 +1,40 @@ {{ $class := .Class }} {{ if site.Params.theme_switcher }} -
- - -
+
+ + +
- - {{ if site.Params.theme_switcher }} + + {{ if site.Params.theme_switcher }} - {{ end }} + {{ end }} {{ end }} diff --git a/themes/hugoplate/layouts/partials/components/tw-size-indicator.html b/themes/hugoplate/layouts/partials/components/tw-size-indicator.html index 38e54cf..a42242e 100644 --- a/themes/hugoplate/layouts/partials/components/tw-size-indicator.html +++ b/themes/hugoplate/layouts/partials/components/tw-size-indicator.html @@ -1,9 +1,9 @@
- all - - - - - + class="fixed left-0 top-0 z-50 flex w-[30px] items-center justify-center bg-gray-200 py-[2.5px] text-[12px] uppercase text-black sm:bg-red-200 md:bg-yellow-200 lg:bg-green-200 xl:bg-blue-200 2xl:bg-pink-200"> + all + + + + +
diff --git a/themes/hugoplate/layouts/partials/essentials/footer.html b/themes/hugoplate/layouts/partials/essentials/footer.html index b5f912f..d4a03b6 100644 --- a/themes/hugoplate/layouts/partials/essentials/footer.html +++ b/themes/hugoplate/layouts/partials/essentials/footer.html @@ -1,57 +1,58 @@ diff --git a/themes/hugoplate/layouts/partials/essentials/head.html b/themes/hugoplate/layouts/partials/essentials/head.html index a14796b..08a864d 100644 --- a/themes/hugoplate/layouts/partials/essentials/head.html +++ b/themes/hugoplate/layouts/partials/essentials/head.html @@ -2,8 +2,8 @@ + name="viewport" + content="width=device-width, initial-scale=1, maximum-scale=5" /> @@ -30,7 +30,7 @@ {{ if and site.Config.Services.GoogleAnalytics.ID (ne site.Config.Services.GoogleAnalytics.ID "G-MEASUREMENT_ID") }} - {{ template "_internal/google_analytics.html" . }} + {{ template "_internal/google_analytics.html" . }} {{ end }} diff --git a/themes/hugoplate/layouts/partials/essentials/header.html b/themes/hugoplate/layouts/partials/essentials/header.html index 56bf1f4..2fc722e 100644 --- a/themes/hugoplate/layouts/partials/essentials/header.html +++ b/themes/hugoplate/layouts/partials/essentials/header.html @@ -1,135 +1,145 @@
-
diff --git a/themes/hugoplate/layouts/partials/essentials/script.html b/themes/hugoplate/layouts/partials/essentials/script.html index fbca5a6..1def33c 100644 --- a/themes/hugoplate/layouts/partials/essentials/script.html +++ b/themes/hugoplate/layouts/partials/essentials/script.html @@ -1,14 +1,14 @@ {{ $scripts := slice }} {{ range site.Params.plugins.js }} - {{ if findRE "^http" .link }} - - {{ else }} - {{ $scripts = $scripts | append (resources.Get .link) }} - {{ end }} + {{ if findRE "^http" .link }} + + {{ else }} + {{ $scripts = $scripts | append (resources.Get .link) }} + {{ end }} {{ end }} @@ -16,14 +16,14 @@ {{ $scripts = $scripts | append (resources.Get "js/main.js") }} {{ $scripts = $scripts | resources.Concat "js/script.js" }} {{ if hugo.IsProduction }} - {{ $scripts = $scripts | minify | fingerprint }} + {{ $scripts = $scripts | minify | fingerprint }} {{ end }} + crossorigin="anonymous" + integrity="{{ $scripts.Data.Integrity }}" + src="{{ $scripts.RelPermalink }}"> {{ partialCached "pwa.html" . }} diff --git a/themes/hugoplate/layouts/partials/essentials/style.html b/themes/hugoplate/layouts/partials/essentials/style.html index 8ad122e..37c9907 100644 --- a/themes/hugoplate/layouts/partials/essentials/style.html +++ b/themes/hugoplate/layouts/partials/essentials/style.html @@ -32,28 +32,28 @@ {{ $styles := slice }} {{ range site.Params.plugins.css }} - {{ if findRE "^http" .link }} - - {{ else }} - {{ $styles = $styles | append (resources.Get .link) }} - {{ end }} + {{ if findRE "^http" .link }} + + {{ else }} + {{ $styles = $styles | append (resources.Get .link) }} + {{ end }} {{ end }} {{ $styles := $styles | append (resources.Get "scss/main.scss" | toCSS) }} {{ $styles := $styles | resources.Concat "css/style.css" }} {{ $styles = $styles | resources.PostCSS }} {{ if hugo.IsProduction }} - {{ $styles = $styles | resources.ExecuteAsTemplate "css/style.css" . | minify | fingerprint | resources.PostProcess }} + {{ $styles = $styles | resources.ExecuteAsTemplate "css/style.css" . | minify | fingerprint | resources.PostProcess }} {{ else }} - {{ $styles = $styles | resources.ExecuteAsTemplate "css/style.css" . }} + {{ $styles = $styles | resources.ExecuteAsTemplate "css/style.css" . }} {{ end }} + href="{{ $styles.RelPermalink }}" + integrity="{{ $styles.Data.Integrity }}" + rel="stylesheet" /> diff --git a/themes/hugoplate/layouts/partials/page-header.html b/themes/hugoplate/layouts/partials/page-header.html index 1277053..981e566 100644 --- a/themes/hugoplate/layouts/partials/page-header.html +++ b/themes/hugoplate/layouts/partials/page-header.html @@ -1,9 +1,9 @@
-
-
-

{{ .Title | title }}

- {{ partial "components/breadcrumb" (dict "Context" . "Class" "mt-6") }} +
+
+

{{ .Title | title }}

+ {{ partial "components/breadcrumb" (dict "Context" . "Class" "mt-6") }} +
-
diff --git a/themes/hugoplate/layouts/partials/widgets/categories.html b/themes/hugoplate/layouts/partials/widgets/categories.html index 2acd197..351f588 100644 --- a/themes/hugoplate/layouts/partials/widgets/categories.html +++ b/themes/hugoplate/layouts/partials/widgets/categories.html @@ -1,23 +1,25 @@ {{ if isset site.Taxonomies "categories" }} - {{ if not (eq (len site.Taxonomies.categories) 0) }} -
-
{{ i18n "categories" }}
-
- -
-
- {{ end }} + {{ if not (eq (len site.Taxonomies.categories) 0) }} +
+
{{ i18n "categories" }}
+
+ +
+
+ {{ end }} {{ end }} diff --git a/themes/hugoplate/layouts/partials/widgets/tags.html b/themes/hugoplate/layouts/partials/widgets/tags.html index aa0db76..9d712a3 100644 --- a/themes/hugoplate/layouts/partials/widgets/tags.html +++ b/themes/hugoplate/layouts/partials/widgets/tags.html @@ -1,23 +1,24 @@ {{ if isset site.Taxonomies "tags" }} - {{ if not (eq (len site.Taxonomies.tags) 0) }} -
-
Tags
-
- -
-
- {{ end }} + {{ if not (eq (len site.Taxonomies.tags) 0) }} +
+
Tags
+
+ +
+
+ {{ end }} {{ end }} diff --git a/themes/hugoplate/layouts/partials/widgets/widget-wrapper.html b/themes/hugoplate/layouts/partials/widgets/widget-wrapper.html index 03a8a44..d1c40f0 100644 --- a/themes/hugoplate/layouts/partials/widgets/widget-wrapper.html +++ b/themes/hugoplate/layouts/partials/widgets/widget-wrapper.html @@ -1,3 +1,3 @@ {{ range .Widgets }} - {{ partial ( print "widgets/" . ) $.Scope }} + {{ partial ( print "widgets/" . ) $.Scope }} {{ end }}