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-12 12:29:13 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-11-12 14:05:31 +0300
commit5f3f60898cfe1c087841ec1fbd5ddc2916d0a2c6 (patch)
treeda8e1bdc14a8086cf4075b30b279dba47cea8961 /create/content.go
parent057d02de256a3866b7044abaa4d03c69d9fedef0 (diff)
create: Improve archetype directory discovery and tests
Updates #9146
Diffstat (limited to 'create/content.go')
-rw-r--r--create/content.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/create/content.go b/create/content.go
index 52393ce5b..524803d36 100644
--- a/create/content.go
+++ b/create/content.go
@@ -252,7 +252,8 @@ func (b *contentBuilder) setArcheTypeFilenameToUse(ext string) {
if b.kind != "" {
pathsToCheck = append(pathsToCheck, b.kind+ext)
}
- pathsToCheck = append(pathsToCheck, "default"+ext, "default")
+
+ pathsToCheck = append(pathsToCheck, "default"+ext)
for _, p := range pathsToCheck {
fi, err := b.archeTypeFs.Stat(p)