aboutsummaryrefslogtreecommitdiffhomepage
path: root/create
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2021-11-08 11:50:51 +0100
committerBjørn Erik Pedersen <[email protected]>2021-11-08 14:10:46 +0100
commit2b01c85d14102353015cf6860d30be3d92964495 (patch)
treede5dbb36e0dcb6478d920af8ae94884d6571af06 /create
parentc09f5c5fd35c03de0444928ada3ce1c5a214b321 (diff)
downloadhugo-2b01c85d14102353015cf6860d30be3d92964495.tar.gz
hugo-2b01c85d14102353015cf6860d30be3d92964495.zip
Fix path resolution in hugo new
With theme and project with content directories and command on the form `hugo new posts/test.md`. Fixes #9129
Diffstat (limited to 'create')
-rw-r--r--create/content_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/create/content_test.go b/create/content_test.go
index 6f0ed8c86..2d68f7610 100644
--- a/create/content_test.go
+++ b/create/content_test.go
@@ -35,7 +35,7 @@ import (
)
// TODO(bep) clean this up. Export the test site builder in Hugolib or something.
-func TestNewContent(t *testing.T) {
+func TestNewContentFromFile(t *testing.T) {
cases := []struct {
name string
kind string