summaryrefslogtreecommitdiffstats
path: root/create/content.go
diff options
context:
space:
mode:
Diffstat (limited to 'create/content.go')
-rw-r--r--create/content.go10
1 files changed, 2 insertions, 8 deletions
diff --git a/create/content.go b/create/content.go
index 13e668201..d1594a199 100644
--- a/create/content.go
+++ b/create/content.go
@@ -16,15 +16,14 @@ package create
import (
"bytes"
-
- "github.com/pkg/errors"
-
"io"
"os"
"os/exec"
"path/filepath"
"strings"
+ "github.com/pkg/errors"
+
"github.com/gohugoio/hugo/hugofs/files"
"github.com/gohugoio/hugo/hugofs"
@@ -131,7 +130,6 @@ func newContentFromDir(
sites *hugolib.HugoSites,
targetFs afero.Fs,
cm archetypeMap, name, targetPath string) error {
-
for _, f := range cm.otherFiles {
meta := f.Meta()
filename := meta.Path()
@@ -196,11 +194,9 @@ func mapArcheTypeDir(
ps *helpers.PathSpec,
fs afero.Fs,
archetypeDir string) (archetypeMap, error) {
-
var m archetypeMap
walkFn := func(path string, fi hugofs.FileMetaInfo, err error) error {
-
if err != nil {
return err
}
@@ -308,7 +304,6 @@ func resolveContentPath(sites *hugolib.HugoSites, fs afero.Fs, targetPath string
}
if siteContentDir == "" {
-
}
if siteContentDir != "" {
@@ -324,7 +319,6 @@ func resolveContentPath(sites *hugolib.HugoSites, fs afero.Fs, targetPath string
}
return s.PathSpec.AbsPathify(filepath.Join(contentDir, targetPath)), s
}
-
}
// FindArchetype takes a given kind/archetype of content and returns the path