hugolib/filesystems: Fix theme config for Work Fs

Which was the reason why `PostCSS´ from theme(s) was not picked up.

Fixes #4951
This commit is contained in:
Bjørn Erik Pedersen
2018-07-18 11:02:21 +02:00
parent 59ebc83d72
commit 5c9d5413a4
2 changed files with 16 additions and 1 deletions

View File

@@ -407,6 +407,11 @@ func (b *sourceFilesystemsBuilder) createFs(
s := &SourceFilesystem{
SourceFs: b.p.Fs.Source,
}
if themeFolder == "" {
themeFolder = filePathSeparator
}
var dir string
if dirKey != "" {
dir = b.p.Cfg.GetString(dirKey)