chore: auto detect theme name

This commit is contained in:
SerKo 2022-05-09 19:22:36 +08:00
parent efbf16bac6
commit b48d4aa974
1 changed files with 2 additions and 2 deletions

View File

@ -4,8 +4,8 @@
"description": "",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "hugo server -D --disableFastRender --source=exampleSite --themesDir=../.. --theme=holy",
"build": "hugo --source=exampleSite --themesDir=../.. --theme=holy"
"dev": "hugo server -D --disableFastRender --source=exampleSite --themesDir=../.. --theme=${PWD##*/}",
"build": "hugo --source=exampleSite --themesDir=../.. --theme=${PWD##*/}"
},
"repository": {
"type": "git",