Make sure resources directory isn't created in hugo new theme

Fixes #11382
This commit is contained in:
Bjørn Erik Pedersen
2023-08-23 21:53:46 +02:00
parent 24b1be45c1
commit ebaa733d45
3 changed files with 9 additions and 5 deletions

View File

@@ -16,11 +16,13 @@ exists i18n
exists layouts
exists static
exists themes
! exists resources
hugo new theme -h
stdout 'Create a new theme \(skeleton\) called \[name\] in ./themes'
hugo new theme mytheme
stdout 'Creating new theme'
! exists resources
cd themes
cd mytheme
checkfile archetypes/default.md