feat: implement common components

feat: implement sidebar

feat: implement footer

feat: implement breadcrumb

chore: add typography styles

chore: add heading anchor link

chore: add postcss-nested
This commit is contained in:
Xin
2023-07-27 00:05:47 +01:00
parent e0bfaf0467
commit c8eb404fe6
10 changed files with 190 additions and 11 deletions

View File

@ -1,8 +1,8 @@
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 = {
// eslint-disable-next-line no-process-env
plugins: [tailwind, ...(process.env.HUGO_ENVIRONMENT === 'production' ? [autoprefixer] : [])],
plugins: [tailwind, nested, ...(process.env.HUGO_ENVIRONMENT === 'production' ? [autoprefixer] : [])], // add nesting to the plugins array
};