Open alairs opened 8 years ago
config.yml中summary_lines设为5以下的数字时,就会报错,如下:
aquan@edge40 MINGW32 /f/Btsync/alair $ gor compile 2016/03/31 11:04:54 gor.go:46: gor ver 3.7.0 2016/03/31 11:04:54 payload.go:37: root= F:\Btsync\alair\ 2016/03/31 11:04:54 payload.go:611: >>> F:\Btsync\alair\themes/aquan/layouts/ 2016/03/31 11:04:54 payload.go:657: Load Layout : default 2016/03/31 11:04:54 payload.go:657: Load Layout : page 2016/03/31 11:04:54 payload.go:657: Load Layout : post 2016/03/31 11:04:54 config.go:46: Look lile a Json, try it 2016/03/31 11:04:54 config.go:49: It is Json Map panic: interface conversion: interface is int, not int64
goroutine 1 [running]: panic(0x74b720, 0x110ba6c0) C:/Go/src/runtime/panic.go:464 +0x326 github.com/wendal/gor.BaiscHelpers(0x10f96a60, 0x110ba4c0, 0x382918, 0x110ba5e0) D:/gopath/src/github.com/wendal/gor/compile.go:173 +0x209 github.com/wendal/gor.Compile(0x0, 0x0) D:/gopath/src/github.com/wendal/gor/compile.go:73 +0x948 main._compile() D:/gopath/src/github.com/wendal/gor/gor/gor.go:143 +0x1e main.main() D:/gopath/src/github.com/wendal/gor/gor/gor.go:95 +0x22d
额, 5以下.... 行,算个bug,我看看怎么改
config.yml中summary_lines设为5以下的数字时,就会报错,如下:
aquan@edge40 MINGW32 /f/Btsync/alair $ gor compile 2016/03/31 11:04:54 gor.go:46: gor ver 3.7.0 2016/03/31 11:04:54 payload.go:37: root= F:\Btsync\alair\ 2016/03/31 11:04:54 payload.go:611: >>> F:\Btsync\alair\themes/aquan/layouts/ 2016/03/31 11:04:54 payload.go:657: Load Layout : default 2016/03/31 11:04:54 payload.go:657: Load Layout : page 2016/03/31 11:04:54 payload.go:657: Load Layout : post 2016/03/31 11:04:54 config.go:46: Look lile a Json, try it 2016/03/31 11:04:54 config.go:49: It is Json Map panic: interface conversion: interface is int, not int64
goroutine 1 [running]: panic(0x74b720, 0x110ba6c0) C:/Go/src/runtime/panic.go:464 +0x326 github.com/wendal/gor.BaiscHelpers(0x10f96a60, 0x110ba4c0, 0x382918, 0x110ba5e0) D:/gopath/src/github.com/wendal/gor/compile.go:173 +0x209 github.com/wendal/gor.Compile(0x0, 0x0) D:/gopath/src/github.com/wendal/gor/compile.go:73 +0x948 main._compile() D:/gopath/src/github.com/wendal/gor/gor/gor.go:143 +0x1e main.main() D:/gopath/src/github.com/wendal/gor/gor/gor.go:95 +0x22d