Skip to content

Commit 34414f9

Browse files
committed
Fixes issue with colors not working correctly (Hugo v0.123.1)
1 parent ae8e013 commit 34414f9

File tree

1 file changed

+18
-20
lines changed

1 file changed

+18
-20
lines changed

assets/css/tailwind.config.js

+18-20
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,33 @@
11
const themeDir = __dirname + "/../../";
22

33
module.exports = {
4-
purge: {
5-
enabled: process.env.HUGO_ENVIRONMENT === "production",
6-
content: [
7-
themeDir + "layouts/**/*.html",
8-
themeDir + "content/**/*.html",
9-
"layouts/**/*.html",
10-
"config.toml",
11-
"content/**/*.html",
12-
"assets/js/search.js",
13-
"exampleSite/layouts/**/*.html",
14-
"exampleSite/config.toml",
15-
"exampleSite/content/**/*.html",
16-
],
17-
},
4+
content: [
5+
themeDir + "layouts/**/*.html",
6+
themeDir + "content/**/*.html",
7+
"layouts/**/*.html",
8+
"config.toml",
9+
"hugo.toml",
10+
"content/**/*.html",
11+
"assets/js/search.js",
12+
"exampleSite/layouts/**/*.html",
13+
"exampleSite/config.toml",
14+
"exampleSite/content/**/*.html",
15+
],
1816
darkMode: "class",
1917
theme: {
2018
extend: {
2119
typography: (theme) => ({
2220
DEFAULT: {
2321
css: [
2422
{
25-
'code::before': {
23+
"code::before": {
2624
content: '""',
2725
},
28-
'code::after': {
26+
"code::after": {
2927
content: '""',
3028
},
31-
}
32-
]
29+
},
30+
],
3331
},
3432
dark: {
3533
css: [
@@ -78,10 +76,10 @@ module.exports = {
7876
"a code": {
7977
color: theme("colors.white"),
8078
},
81-
'code::before': {
79+
"code::before": {
8280
content: '""',
8381
},
84-
'code::after': {
82+
"code::after": {
8583
content: '""',
8684
},
8785
pre: {

0 commit comments

Comments
 (0)