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,11 +1,19 @@
version: '3'
version: "3"
tasks:
serve:
dev:
cmds:
- hugo server --enableGitInfo --buildDrafts --buildExpired --buildFuture -p 1313
- hugo server --debug --enableGitInfo --source=exampleSite --themesDir=../.. --environment=theme --disableFastRender --buildDrafts --port 1313
build:
deps: [css]
cmds:
- hugo --minify
- hugo --minify --source=exampleSite --themesDir=../..
css:
cmds:
- npx postcss --config postcss.config.js --env production assets/css/styles.css -o assets/css/compiled/main.css
clean:
cmds:
- rm -rf public resources