Hopefully fix #

This commit is contained in:
Henrique Dias committed 2016-11-14 20:09:30 +00:00
1 parent e03fa7eb0c
commit 5cb16ed8ae
6 files changed
+26 -15

No files matched your search

+3 -3
View File
@@ -24,8 +24,8 @@ func PreProccessPUT(
i *file.Info,
) (err error) {
var (
data map[string]interface{}
file []byte
data = map[string]interface{}{}
file = []byte{}
kind string
rawBuffer = new(bytes.Buffer)
)
@@ -43,7 +43,7 @@ func PreProccessPUT(
switch kind {
case "frontmatter-only":
if file, err = ParseFrontMatterOnlyFile(data, i.Name()); err != nil {
if file, err = ParseFrontMatterOnlyFile(data, i.FileInfo.Name()); err != nil {
return
}
case "content-only":