update remove-darkmode.js
This commit is contained in:
parent
9629eaed56
commit
03c01b7203
@ -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/,
|
||||||
|
@ -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 }}
|
|
||||||
|
@ -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": {
|
||||||
|
@ -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)*;",
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user