diff options
author | spf13 <[email protected]> | 2014-11-01 11:57:29 -0400 |
---|---|---|
committer | spf13 <[email protected]> | 2014-11-01 11:57:29 -0400 |
commit | 141f3e19e0a9ba873b0cece6071b1187daa81d8d (patch) | |
tree | cce0490471ad12ba2c9297f5eedea5411b8fef97 /create | |
parent | dfb848256994289f5571fae8343578cf455c6431 (diff) | |
download | hugo-141f3e19e0a9ba873b0cece6071b1187daa81d8d.tar.gz hugo-141f3e19e0a9ba873b0cece6071b1187daa81d8d.zip |
Migrating Hugo to Afero for filesystem calls.
Diffstat (limited to 'create')
-rw-r--r-- | create/content.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/create/content.go b/create/content.go index bb0f029dc..2b185c876 100644 --- a/create/content.go +++ b/create/content.go @@ -23,6 +23,7 @@ import ( "github.com/spf13/cast" "github.com/spf13/hugo/helpers" + "github.com/spf13/hugo/hugofs" "github.com/spf13/hugo/hugolib" "github.com/spf13/hugo/parser" jww "github.com/spf13/jwalterweatherman" @@ -131,7 +132,7 @@ func FindArchetype(kind string) (outpath string) { for _, p := range pathsToCheck { curpath := path.Join(x, p) jww.DEBUG.Println("checking", curpath, "for archetypes") - if exists, _ := helpers.Exists(curpath); exists { + if exists, _ := helpers.Exists(curpath, hugofs.SourceFs); exists { jww.INFO.Println("curpath: " + curpath) return curpath } |