Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-11-08 13:50:51 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-11-08 16:10:46 +0300
commit2b01c85d14102353015cf6860d30be3d92964495 (patch)
treede5dbb36e0dcb6478d920af8ae94884d6571af06 /create/content_test.go
parentc09f5c5fd35c03de0444928ada3ce1c5a214b321 (diff)
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/content_test.go')
-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