summaryrefslogtreecommitdiffstats
path: root/commands/import_jekyll.go
diff options
context:
space:
mode:
authorVas Sudanagunta <vas@commonkarma.org>2018-01-25 22:54:15 -0500
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-01-26 09:17:27 +0100
commit91bb774ae4e129f7ed0624754b31479c960ef774 (patch)
tree9c6d7628e9f5ec7c25842bb8609278da60ab2ec4 /commands/import_jekyll.go
parent3f0379adb72389954ca2be6a9f2ebfcd65c6c440 (diff)
Support pages without front matter
* Page without front matter now treated same as a page with empty front matter. * Test cases added to cover this and repro issue #4320. * Type safety of front matter code improved. Fixes #4320
Diffstat (limited to 'commands/import_jekyll.go')
-rw-r--r--commands/import_jekyll.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/import_jekyll.go b/commands/import_jekyll.go
index 98094dbb7..327bf6095 100644
--- a/commands/import_jekyll.go
+++ b/commands/import_jekyll.go
@@ -255,7 +255,7 @@ func loadJekyllConfig(fs afero.Fs, jekyllRoot string) map[string]interface{} {
return nil
}
- return c.(map[string]interface{})
+ return c
}
func createConfigFromJekyll(fs afero.Fs, inpath string, kind string, jekyllConfig map[string]interface{}) (err error) {