From b48d4aa974910ca0887ea8555fcded4e25a2b0bc Mon Sep 17 00:00:00 2001 From: SerKo Date: Mon, 9 May 2022 19:22:36 +0800 Subject: [PATCH] chore: auto detect theme name --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ba80629..dd8e181 100644 --- a/package.json +++ b/package.json @@ -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",