update remove-darkmode.js

This commit is contained in:
somrat sorkar 2023-05-29 16:36:58 +06:00
parent 9629eaed56
commit 03c01b7203
4 changed files with 9 additions and 11 deletions

View File

@ -18,10 +18,9 @@ const purgecss = {
/^gi/, /^gi/,
/^desc/, /^desc/,
/^zoom/, /^zoom/,
/^:is/,
/^dark/,
/^search/, /^search/,
/^[aria-selected]/, /^[aria-selected]/,
/^:is/,
/dark/, /dark/,
/show/, /show/,
/dragging/, /dragging/,

View File

@ -1,11 +1,9 @@
{{ define "main" }} {{ define "main" }}
<div class="container">
<div class="container"> <div class="row">
<div class="row"> <div class="col-12">
<div class="col-12"> {{ partial "search-page.html" (dict "Context" . "Class" "your-custom-class") }}
{{ partial "search-page.html" (dict "Context" . "Class" "your-custom-class") }} </div>
</div> </div>
</div> </div>
</div> {{ end }}
{{ end }}

View File

@ -1,7 +1,7 @@
{ {
"name": "hugoplate", "name": "hugoplate",
"description": "hugo tailwindcss boilerplate", "description": "hugo tailwindcss boilerplate",
"version": "1.0.3", "version": "1.0.4",
"license": "MIT", "license": "MIT",
"author": "zeon.studio", "author": "zeon.studio",
"scripts": { "scripts": {

View File

@ -37,6 +37,7 @@ function removeDarkModeFromPages(directoryPath) {
} else if (stats.isFile()) { } else if (stats.isFile()) {
removeDarkModeFromFiles(filePath, [ removeDarkModeFromFiles(filePath, [
'(?:(?!["])\\S)*dark:(?:(?![,;"])\\S)*', '(?:(?!["])\\S)*dark:(?:(?![,;"])\\S)*',
"@apply?(\\s)*;",
]); ]);
} }
}); });