From 03c01b72030a155aba29527b2f64ea21107d72f5 Mon Sep 17 00:00:00 2001 From: somrat sorkar Date: Mon, 29 May 2023 16:36:58 +0600 Subject: [PATCH] update remove-darkmode.js --- exampleSite/postcss.config.js | 3 +-- layouts/_default/search.html | 14 ++++++-------- package.json | 2 +- scripts/removeDarkmode.js | 1 + 4 files changed, 9 insertions(+), 11 deletions(-) diff --git a/exampleSite/postcss.config.js b/exampleSite/postcss.config.js index aa3b810..6e1d04f 100644 --- a/exampleSite/postcss.config.js +++ b/exampleSite/postcss.config.js @@ -18,10 +18,9 @@ const purgecss = { /^gi/, /^desc/, /^zoom/, - /^:is/, - /^dark/, /^search/, /^[aria-selected]/, + /^:is/, /dark/, /show/, /dragging/, diff --git a/layouts/_default/search.html b/layouts/_default/search.html index 9711771..dae937a 100644 --- a/layouts/_default/search.html +++ b/layouts/_default/search.html @@ -1,11 +1,9 @@ {{ define "main" }} - -
-
-
- {{ partial "search-page.html" (dict "Context" . "Class" "your-custom-class") }} +
+
+
+ {{ partial "search-page.html" (dict "Context" . "Class" "your-custom-class") }} +
-
- -{{ end }} \ No newline at end of file +{{ end }} diff --git a/package.json b/package.json index 9fee342..f458c33 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "hugoplate", "description": "hugo tailwindcss boilerplate", - "version": "1.0.3", + "version": "1.0.4", "license": "MIT", "author": "zeon.studio", "scripts": { diff --git a/scripts/removeDarkmode.js b/scripts/removeDarkmode.js index cfc1e08..7fe4218 100644 --- a/scripts/removeDarkmode.js +++ b/scripts/removeDarkmode.js @@ -37,6 +37,7 @@ function removeDarkModeFromPages(directoryPath) { } else if (stats.isFile()) { removeDarkModeFromFiles(filePath, [ '(?:(?!["])\\S)*dark:(?:(?![,;"])\\S)*', + "@apply?(\\s)*;", ]); } });