Skip to content

Commit

Permalink
Merge pull request #148 from robhenley/minor-fixes
Browse files Browse the repository at this point in the history
Fix issue with Tailwind config & backwards compatibility error
  • Loading branch information
apvarun authored Feb 27, 2024
2 parents ae8e013 + 6727a56 commit 467a941
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 21 deletions.
38 changes: 18 additions & 20 deletions assets/css/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,35 +1,33 @@
const themeDir = __dirname + "/../../";

module.exports = {
purge: {
enabled: process.env.HUGO_ENVIRONMENT === "production",
content: [
themeDir + "layouts/**/*.html",
themeDir + "content/**/*.html",
"layouts/**/*.html",
"config.toml",
"content/**/*.html",
"assets/js/search.js",
"exampleSite/layouts/**/*.html",
"exampleSite/config.toml",
"exampleSite/content/**/*.html",
],
},
content: [
themeDir + "layouts/**/*.html",
themeDir + "content/**/*.html",
"layouts/**/*.html",
"config.toml",
"hugo.toml",
"content/**/*.html",
"assets/js/search.js",
"exampleSite/layouts/**/*.html",
"exampleSite/config.toml",
"exampleSite/content/**/*.html",
],
darkMode: "class",
theme: {
extend: {
typography: (theme) => ({
DEFAULT: {
css: [
{
'code::before': {
"code::before": {
content: '""',
},
'code::after': {
"code::after": {
content: '""',
},
}
]
},
],
},
dark: {
css: [
Expand Down Expand Up @@ -78,10 +76,10 @@ module.exports = {
"a code": {
color: theme("colors.white"),
},
'code::before': {
"code::before": {
content: '""',
},
'code::after': {
"code::after": {
content: '""',
},
pre: {
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{{ hugo.Generator }}

{{- $styles := resources.Get "css/styles.css" | postCSS (dict "config" "./assets/css/") -}}
{{- if .Site.IsServer }}
{{- if hugo.IsServer }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" />
{{ else }}
{{- $styles := $styles| minify | fingerprint | resources.PostProcess -}}
Expand Down

0 comments on commit 467a941

Please sign in to comment.