chore: move content to exampleSite

* update dev and build command

chore: move contents to exampleSite

chore: add configs to exampleSite

chore: use tailwindcss/nesting

* add postcss-import
* move imports to the top

chore: add config for theme dev

chore: add compiled css

chore: fix last updated issue

chore: dont't ignore hugo_stats.json

chore: update index page layout
This commit is contained in:
Xin
2023-08-12 16:45:00 +01:00
parent 91fe140c8a
commit 52931107a3
35 changed files with 4042 additions and 143 deletions

View File

@ -1,8 +1,12 @@
let tailwindConfig = process.env.HUGO_FILE_TAILWIND_CONFIG_JS || './tailwind.config.js';
const tailwind = require('tailwindcss')(tailwindConfig);
const autoprefixer = require('autoprefixer');
const nested = require('postcss-nested')
module.exports = {
plugins: [tailwind, nested, ...(process.env.HUGO_ENVIRONMENT === 'production' ? [autoprefixer] : [])], // add nesting to the plugins array
plugins: [
require('postcss-import'),
require('@tailwindcss/nesting'),
tailwind,
...(process.env.HUGO_ENVIRONMENT === 'production' ? [autoprefixer] : [])
],
};