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/,
/^desc/,
/^zoom/,
/^:is/,
/^dark/,
/^search/,
/^[aria-selected]/,
/^:is/,
/dark/,
/show/,
/dragging/,

View File

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

View File

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

View File

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