Skip to content

Commit

Permalink
refactor: better project structure (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
odhyp authored Oct 31, 2024
2 parents c5c40f1 + fdde412 commit af573f7
Show file tree
Hide file tree
Showing 30 changed files with 28 additions and 29 deletions.
8 changes: 8 additions & 0 deletions assets/css/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
plugins: [
require("tailwindcss")("./assets/css/tailwind.config.js"), // Update path to the root directory
require("autoprefixer")({
path: ["./"],
}),
],
};
File renamed without changes.
19 changes: 19 additions & 0 deletions assets/css/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = {
darkMode: "class",
content: [
"./layouts/**/*.html",
"./content/**/*.html",
"./themes/**/layouts/**/*.html", // Themes layouts directory
"./themes/**/content/**/*.html", // Themes content directory, if applicable
"./assets/**/*.js", // Include any JavaScript files where Tailwind classes might be used
"./static/**/*.html", // Include static HTML if you have them
],
theme: {
extend: {},
},
plugins: [
require("@tailwindcss/aspect-ratio"),
require("@tailwindcss/forms"),
require("@tailwindcss/typography"),
],
};
File renamed without changes.
3 changes: 1 addition & 2 deletions hugo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
baseURL = 'https://example.org/'
languageCode = 'en-us'
title = 'Hugo TailwindCSS Starter'
theme = 'starter-theme'
title = 'Hugo TailwindCSS Starter'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file added themes/.gitkeep
Empty file.
10 changes: 0 additions & 10 deletions themes/starter-theme/assets/css/postcss.config.js

This file was deleted.

17 changes: 0 additions & 17 deletions themes/starter-theme/assets/css/tailwind.config.js

This file was deleted.

0 comments on commit af573f7

Please sign in to comment.