Closed wofeiwo closed 11 years ago
https://github.com/douo/douo.ruhoh.com/tree/master/themes/moon
用了一下这个皮肤,然后在papers/index.html处使用了 layout: home home: 1 直接在compile的时候报错空指针:
panic: interface conversion: interface is nil, not *gor.DocContent goroutine 1 [running]: github.com/wendal/gor.RenderInLayout(0xf84012e000, 0x65d, 0xf840092c20, 0xf800000004, 0xf84007bda0, ...) /usr/local/go/src/pkg/github.com/wendal/gor/compile.go:129 +0x212 github.com/wendal/gor.Compile(0x7fff5fbffa84, 0xf800000007) /usr/local/go/src/pkg/github.com/wendal/gor/compile.go:87 +0xdff main.main() /usr/local/go/src/pkg/github.com/wendal/gor/gor/gor.go:64 +0x50d goroutine 2 [syscall]: created by runtime.main /usr/local/go/src/pkg/runtime/proc.c:221
我试试看
找到原因了, 没支持theme内的layout, 同理, widget 也还没支持 我尽快fix之
fixed
https://github.com/douo/douo.ruhoh.com/tree/master/themes/moon
用了一下这个皮肤,然后在papers/index.html处使用了 layout: home home: 1 直接在compile的时候报错空指针: