summaryrefslogtreecommitdiffstats
path: root/hugolib/filesystems/basefs.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-10-26 09:41:24 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-10-26 12:16:28 +0200
commit78578632f545283741a01f024a6ccedc0b695a30 (patch)
tree67f666cdea850bc84e24fcf2b22c77ffddfdc301 /hugolib/filesystems/basefs.go
parent6b78b3810a800e315b57e2d907db9040cda36ac0 (diff)
Fix archetype handling of directories in theme
Fixes #5318
Diffstat (limited to 'hugolib/filesystems/basefs.go')
-rw-r--r--hugolib/filesystems/basefs.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/hugolib/filesystems/basefs.go b/hugolib/filesystems/basefs.go
index 77a68a8ae..ee1c870d9 100644
--- a/hugolib/filesystems/basefs.go
+++ b/hugolib/filesystems/basefs.go
@@ -433,6 +433,9 @@ func (b *sourceFilesystemsBuilder) createFs(
}
if b.hasTheme {
+ if !strings.HasPrefix(themeFolder, filePathSeparator) {
+ themeFolder = filePathSeparator + themeFolder
+ }
themeFolderFs := newRealBase(afero.NewBasePathFs(b.themeFs, themeFolder))
if fs == nil {
fs = themeFolderFs