From 74d9d9b8cc995e8f551832837bc0450258650d5f Mon Sep 17 00:00:00 2001 From: somrat sorkar Date: Wed, 7 Feb 2024 10:48:22 +0600 Subject: [PATCH] update image modules and modified homepage image sizes --- exampleSite/go.mod | 45 +++++++++++++++++++++---------------------- exampleSite/hugo.toml | 2 +- layouts/index.html | 8 ++++---- package.json | 4 ++-- 4 files changed, 29 insertions(+), 30 deletions(-) diff --git a/exampleSite/go.mod b/exampleSite/go.mod index 2c1be23..fcbba09 100644 --- a/exampleSite/go.mod +++ b/exampleSite/go.mod @@ -3,27 +3,26 @@ module hugoplate.netlify.app go 1.20 require ( - github.com/gethugothemes/hugo-modules/accordion v0.0.0-20240204111603-f9576ac6d1fa // indirect - github.com/gethugothemes/hugo-modules/adsense v0.0.0-20240204111603-f9576ac6d1fa // indirect - github.com/gethugothemes/hugo-modules/components/cookie-consent v0.0.0-20240204111603-f9576ac6d1fa // indirect - github.com/gethugothemes/hugo-modules/components/custom-script v0.0.0-20240204111603-f9576ac6d1fa // indirect - github.com/gethugothemes/hugo-modules/components/preloader v0.0.0-20240204111603-f9576ac6d1fa // indirect - github.com/gethugothemes/hugo-modules/components/render-link v0.0.0-20240204111603-f9576ac6d1fa // indirect - github.com/gethugothemes/hugo-modules/components/social-share v0.0.0-20240204111603-f9576ac6d1fa // indirect - github.com/gethugothemes/hugo-modules/gallery-slider v0.0.0-20240204111603-f9576ac6d1fa // indirect - github.com/gethugothemes/hugo-modules/gzip-caching v0.0.0-20240204111603-f9576ac6d1fa // indirect - github.com/gethugothemes/hugo-modules/icons/font-awesome v0.0.0-20240204111603-f9576ac6d1fa // indirect - github.com/gethugothemes/hugo-modules/images v0.0.0-20240204111603-f9576ac6d1fa // indirect - github.com/gethugothemes/hugo-modules/modal v0.0.0-20240204111603-f9576ac6d1fa // indirect - github.com/gethugothemes/hugo-modules/pwa v0.0.0-20240204111603-f9576ac6d1fa // indirect - github.com/gethugothemes/hugo-modules/search v0.0.0-20240204111603-f9576ac6d1fa // indirect - github.com/gethugothemes/hugo-modules/seo-tools/basic-seo v0.0.0-20240204111603-f9576ac6d1fa // indirect - github.com/gethugothemes/hugo-modules/seo-tools/google-tag-manager v0.0.0-20240204111603-f9576ac6d1fa // indirect - github.com/gethugothemes/hugo-modules/seo-tools/site-verifications v0.0.0-20240204111603-f9576ac6d1fa // indirect - github.com/gethugothemes/hugo-modules/shortcodes/button v0.0.0-20240204111603-f9576ac6d1fa // indirect - github.com/gethugothemes/hugo-modules/shortcodes/notice v0.0.0-20240204111603-f9576ac6d1fa // indirect - github.com/gethugothemes/hugo-modules/tab v0.0.0-20240204111603-f9576ac6d1fa // indirect - github.com/gethugothemes/hugo-modules/table-of-contents v0.0.0-20240204111603-f9576ac6d1fa // indirect - github.com/gethugothemes/hugo-modules/videos v0.0.0-20240204111603-f9576ac6d1fa // indirect - github.com/zeon-studio/hugoplate v0.0.0-20240129044505-c225f20d5453 // indirect + github.com/gethugothemes/hugo-modules/accordion v0.0.0-20240207043320-fa42312441f5 // indirect + github.com/gethugothemes/hugo-modules/adsense v0.0.0-20240207043320-fa42312441f5 // indirect + github.com/gethugothemes/hugo-modules/components/cookie-consent v0.0.0-20240207043320-fa42312441f5 // indirect + github.com/gethugothemes/hugo-modules/components/custom-script v0.0.0-20240207043320-fa42312441f5 // indirect + github.com/gethugothemes/hugo-modules/components/preloader v0.0.0-20240207043320-fa42312441f5 // indirect + github.com/gethugothemes/hugo-modules/components/render-link v0.0.0-20240207043320-fa42312441f5 // indirect + github.com/gethugothemes/hugo-modules/components/social-share v0.0.0-20240207043320-fa42312441f5 // indirect + github.com/gethugothemes/hugo-modules/gallery-slider v0.0.0-20240207043320-fa42312441f5 // indirect + github.com/gethugothemes/hugo-modules/gzip-caching v0.0.0-20240207043320-fa42312441f5 // indirect + github.com/gethugothemes/hugo-modules/icons/font-awesome v0.0.0-20240207043320-fa42312441f5 // indirect + github.com/gethugothemes/hugo-modules/images v0.0.0-20240207043320-fa42312441f5 // indirect + github.com/gethugothemes/hugo-modules/modal v0.0.0-20240207043320-fa42312441f5 // indirect + github.com/gethugothemes/hugo-modules/pwa v0.0.0-20240207043320-fa42312441f5 // indirect + github.com/gethugothemes/hugo-modules/search v0.0.0-20240207043320-fa42312441f5 // indirect + github.com/gethugothemes/hugo-modules/seo-tools/basic-seo v0.0.0-20240207043320-fa42312441f5 // indirect + github.com/gethugothemes/hugo-modules/seo-tools/google-tag-manager v0.0.0-20240207043320-fa42312441f5 // indirect + github.com/gethugothemes/hugo-modules/seo-tools/site-verifications v0.0.0-20240207043320-fa42312441f5 // indirect + github.com/gethugothemes/hugo-modules/shortcodes/button v0.0.0-20240207043320-fa42312441f5 // indirect + github.com/gethugothemes/hugo-modules/shortcodes/notice v0.0.0-20240207043320-fa42312441f5 // indirect + github.com/gethugothemes/hugo-modules/tab v0.0.0-20240207043320-fa42312441f5 // indirect + github.com/gethugothemes/hugo-modules/table-of-contents v0.0.0-20240207043320-fa42312441f5 // indirect + github.com/gethugothemes/hugo-modules/videos v0.0.0-20240207043320-fa42312441f5 // indirect ) diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index a670893..65a856b 100755 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -74,7 +74,7 @@ home = ["HTML", "RSS", "WebAppManifest", "SearchIndex"] [imaging] # See https://github.com/disintegration/imaging # Default JPEG or WebP quality setting. Default is 75. -quality = 90 +quality = 80 resampleFilter = "Lanczos" ############################ Caches ############################## diff --git a/layouts/index.html b/layouts/index.html index f069566..8d20538 100755 --- a/layouts/index.html +++ b/layouts/index.html @@ -4,8 +4,8 @@
-
-

+
+

{{ .title | markdownify }}

@@ -26,7 +26,7 @@ {{ end }}

- {{ partial "image" (dict "Src" .image "Alt" "Banner image" "Loading" "eager" "Class" "mx-auto lg:!max-w-[800px]" ) }} + {{ partial "image" (dict "Src" .image "Alt" "Banner image" "Loading" "eager" "Class" "mx-auto lg:!max-w-[800px]" "DisplayXL" "800x" ) }}

@@ -43,7 +43,7 @@ class="mb:md-0 {{ if not (modBool $i 2) }} md:order-2 {{ end }} md:col-5 mb-6"> - {{ partial "image" (dict "Src" .image "Alt" "feature image") }} + {{ partial "image" (dict "Src" .image "Alt" "feature image" "DisplayXL" "520x" "DisplayLG" "425x" "DisplayMD" "360x") }}