From 6892f7bf9401538a9f2247e506f5f4cd803327b7 Mon Sep 17 00:00:00 2001 From: somrat sorkar Date: Sat, 9 Dec 2023 08:52:04 +0600 Subject: [PATCH] update theme-switcher functionality --- exampleSite/config/_default/params.toml | 6 +++--- layouts/_default/baseof.html | 3 +++ layouts/partials/components/theme-switcher.html | 3 --- package.json | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 1a48e3e..fbada1a 100755 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -1,7 +1,7 @@ #################### default parameters ################################ -# favicon +# favicon module: https://github.com/gethugothemes/hugo-modules/tree/master/images#favicon-implementation favicon = "images/favicon.png" -# logo +# logo module: https://github.com/gethugothemes/hugo-modules/tree/master/images#logo-implementation logo = "images/logo.png" logo_darkmode = "images/logo-darkmode.png" # use `px` or `x` with logo_width, example: "100px". @@ -16,7 +16,7 @@ logo_text = "Hugoplate" navbar_fixed = true # theme-mode theme_switcher = true -theme_default = "dark" # available options [light/dark/system] +theme_default = "system" # available options [light/dark/system] # Main Sections mainSections = ["blog"] # contact form action diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 3460451..135bbb2 100755 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,6 +1,9 @@ diff --git a/layouts/partials/components/theme-switcher.html b/layouts/partials/components/theme-switcher.html index a67d56c..1b602dc 100644 --- a/layouts/partials/components/theme-switcher.html +++ b/layouts/partials/components/theme-switcher.html @@ -34,7 +34,6 @@ - {{ if site.Params.theme_switcher }} - {{ end }} - {{ end }} diff --git a/package.json b/package.json index fff8491..e0befae 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "hugoplate", "description": "hugo tailwindcss boilerplate", - "version": "1.9.5", + "version": "1.9.6", "license": "MIT", "author": "zeon.studio", "scripts": {