From 3d83959fd47bd389b13a9af05868e718d6ea89ea Mon Sep 17 00:00:00 2001 From: somrat sorkar Date: Sun, 4 Feb 2024 17:20:36 +0600 Subject: [PATCH] update blog card and single page taxonomy rendering condition and update modules --- exampleSite/go.mod | 46 ++++++++-------- exampleSite/postcss.config.js | 1 + layouts/blog/single.html | 62 ++++++++++++---------- layouts/partials/components/blog-card.html | 40 +++++++------- package.json | 4 +- 5 files changed, 80 insertions(+), 73 deletions(-) diff --git a/exampleSite/go.mod b/exampleSite/go.mod index b444b65..2c1be23 100644 --- a/exampleSite/go.mod +++ b/exampleSite/go.mod @@ -3,27 +3,27 @@ module hugoplate.netlify.app go 1.20 require ( - github.com/gethugothemes/hugo-modules/accordion v0.0.0-20240120062719-ef21cc42d8bc // indirect - github.com/gethugothemes/hugo-modules/adsense v0.0.0-20240120062719-ef21cc42d8bc // indirect - github.com/gethugothemes/hugo-modules/components/cookie-consent v0.0.0-20240120062719-ef21cc42d8bc // indirect - github.com/gethugothemes/hugo-modules/components/custom-script v0.0.0-20240120062719-ef21cc42d8bc // indirect - github.com/gethugothemes/hugo-modules/components/preloader v0.0.0-20240120062719-ef21cc42d8bc // indirect - github.com/gethugothemes/hugo-modules/components/render-link v0.0.0-20240120062719-ef21cc42d8bc // indirect - github.com/gethugothemes/hugo-modules/components/social-share v0.0.0-20240120062719-ef21cc42d8bc // indirect - github.com/gethugothemes/hugo-modules/gallery-slider v0.0.0-20240120062719-ef21cc42d8bc // indirect - github.com/gethugothemes/hugo-modules/gzip-caching v0.0.0-20240120062719-ef21cc42d8bc // indirect - github.com/gethugothemes/hugo-modules/icons/font-awesome v0.0.0-20240120062719-ef21cc42d8bc // indirect - github.com/gethugothemes/hugo-modules/images v0.0.0-20240120062719-ef21cc42d8bc // indirect - github.com/gethugothemes/hugo-modules/modal v0.0.0-20240120062719-ef21cc42d8bc // indirect - github.com/gethugothemes/hugo-modules/pwa v0.0.0-20240120062719-ef21cc42d8bc // indirect - github.com/gethugothemes/hugo-modules/search v0.0.0-20240120062719-ef21cc42d8bc // indirect - github.com/gethugothemes/hugo-modules/seo-tools/basic-seo v0.0.0-20240120062719-ef21cc42d8bc // indirect - github.com/gethugothemes/hugo-modules/seo-tools/google-tag-manager v0.0.0-20240120062719-ef21cc42d8bc // indirect - github.com/gethugothemes/hugo-modules/seo-tools/site-verifications v0.0.0-20240120062719-ef21cc42d8bc // indirect - github.com/gethugothemes/hugo-modules/shortcodes/button v0.0.0-20240120062719-ef21cc42d8bc // indirect - github.com/gethugothemes/hugo-modules/shortcodes/notice v0.0.0-20240120062719-ef21cc42d8bc // indirect - github.com/gethugothemes/hugo-modules/tab v0.0.0-20240120062719-ef21cc42d8bc // indirect - github.com/gethugothemes/hugo-modules/table-of-contents v0.0.0-20240120062719-ef21cc42d8bc // indirect - github.com/gethugothemes/hugo-modules/videos v0.0.0-20240120062719-ef21cc42d8bc // indirect - github.com/zeon-studio/hugoplate v0.0.0-20240110020211-1fe4fc478ee0 // indirect + 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 ) diff --git a/exampleSite/postcss.config.js b/exampleSite/postcss.config.js index bab806f..f9887c5 100644 --- a/exampleSite/postcss.config.js +++ b/exampleSite/postcss.config.js @@ -31,6 +31,7 @@ const purgecss = { /visible/, /current/, /active/, + /mark/, ], }; diff --git a/layouts/blog/single.html b/layouts/blog/single.html index 31f83a8..ef5b299 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -20,19 +20,21 @@ >{{ .Params.author }} -
  • - - {{ $categories:= .Params.categories }} - {{ range $i,$p:= $categories }} - {{ . | humanize }}{{ if ne $i (sub (len $categories) 1) }} - {{ ", " }} - {{ end }} - - {{ end }} -
  • + {{ $categories:= .Params.categories }} + {{ if $categories }} +
  • + + {{ range $i,$p:= $categories }} + {{ . | humanize }}{{ if ne $i (sub (len $categories) 1) }} + {{ "," }} + {{ end }} + + {{ end }} +
  • + {{ end }}
  • {{ time.Format ":date_long" .PublishDate }} @@ -42,23 +44,25 @@ {{ .Content }}
    -
    -
    {{ i18n "tags" }} :
    - -
    + {{ $tags:= .Params.tags }} + {{ if $tags }} +
    +
    {{ i18n "tags" }} :
    + +
    + {{ end }}
    - {{ partial "social-share" (dict "Context" . "Class" "share-icons" "Title" (i18n "share") "Whatsapp" false "Telegram" false) }} + {{ partial "social-share" (dict "Context" . "Class" "share-icons" "Title" (i18n "share") "Whatsapp" false "Telegram" false "Linkedin" false "Pinterest" false "Tumblr" false "Vk" false) }}
    diff --git a/layouts/partials/components/blog-card.html b/layouts/partials/components/blog-card.html index 5e54cef..72b864c 100644 --- a/layouts/partials/components/blog-card.html +++ b/layouts/partials/components/blog-card.html @@ -8,26 +8,28 @@ {{ .Title }} - + {{ end }}

    {{ .Summary }}

    {{ i18n "read_more" }} diff --git a/package.json b/package.json index da295c0..4f7a7c1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "hugoplate", "description": "hugo tailwindcss boilerplate", - "version": "1.11.2", + "version": "1.12.0", "license": "MIT", "author": "zeon.studio", "scripts": { @@ -25,7 +25,7 @@ "autoprefixer": "^10.4.17", "postcss": "^8.4.33", "postcss-cli": "^11.0.0", - "prettier": "^3.2.4", + "prettier": "^3.2.5", "prettier-plugin-go-template": "0.0.15", "prettier-plugin-tailwindcss": "^0.5.11", "tailwind-bootstrap-grid": "^5.1.0",