diff options
author | Bjørn Erik Pedersen <[email protected]> | 2023-05-28 10:44:40 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-05-28 12:55:44 +0200 |
commit | 43f1282e734f5a27f99ff6efb29190a234b3447a (patch) | |
tree | 0e58d06118a6d13c93fed23baa13563fd3da2395 /testscripts/commands | |
parent | e96cdfe9664cb38c3e16cc00cc630cf6f258d547 (diff) | |
download | hugo-43f1282e734f5a27f99ff6efb29190a234b3447a.tar.gz hugo-43f1282e734f5a27f99ff6efb29190a234b3447a.zip |
commands: Reinstate some of the removed build flags (e.g. --theme) to new and mod
Fixes #11018
Diffstat (limited to 'testscripts/commands')
-rw-r--r-- | testscripts/commands/mod__themesdir.txt | 7 | ||||
-rw-r--r-- | testscripts/commands/new.txt | 23 |
2 files changed, 30 insertions, 0 deletions
diff --git a/testscripts/commands/mod__themesdir.txt b/testscripts/commands/mod__themesdir.txt new file mode 100644 index 000000000..ec76d0c76 --- /dev/null +++ b/testscripts/commands/mod__themesdir.txt @@ -0,0 +1,7 @@ +hugo --theme mytheme mod graph +stdout 'project mytheme' + +-- hugo.toml -- +title = "Hugo Module" +-- themes/mytheme/hugo.toml -- +title = "My Theme" diff --git a/testscripts/commands/new.txt b/testscripts/commands/new.txt index aeebba66d..aad0d80f6 100644 --- a/testscripts/commands/new.txt +++ b/testscripts/commands/new.txt @@ -25,3 +25,26 @@ stdout 'Create a new content file.' hugo new posts/my-first-post.md checkfile content/posts/my-first-post.md +cd .. +cd myexistingsite +hugo new post/foo.md -t mytheme +grep 'Dummy content' content/post/foo.md + +-- myexistingsite/hugo.toml -- +theme = "mytheme" +-- myexistingsite/content/p1.md -- +--- +title: "P1" +--- +-- myexistingsite/themes/mytheme/hugo.toml -- +-- myexistingsite/themes/mytheme/archetypes/post.md -- +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + +Dummy content. + + + |