Closed Puhao closed 11 years ago
呵呵, 提供一下地址和demo嘛
加网, 的话, 得弄个新的挂件哦
我修改配置文件
layout : uyan
uyan:
uid: 1341
livefyre :
site_id : 123
intensedebate :
account : 123abc
facebook :
appid : 123
num_posts: 5
width: 580
colorscheme: light
结果compile的时候报错了,o(╯□╰)o 不过用merge后的支持多说的那个组件,已经成功挂上去了,发现多说很不错O(∩_∩)O哈哈~
报错? 贴出错信息看看,我昨天试过是好的
2013/08/23 14:32:28 widgets.go:146: Load widget from widgets/analytics/config.yml
2013/08/23 14:32:28 widgets.go:201: Comments >> uyan
2013/08/23 14:32:28 gor.go:70: CommentsWidget Only for disqus yet
/Users/saint/go/src/github.com/wendal/errors/errors.go:18 (0xee9da)
com/wendal/errors.New: text += "\n" + string(debug.Stack())
/Users/saint/go/src/github.com/wendal/gor/widgets.go:228 (0x65e46)
com/wendal/gor.BuildCommentsWidget: return nil, errors.New("CommentsWidget Only for disqus yet")
/Users/saint/go/src/github.com/wendal/gor/widgets.go:141 (0x6aeed)
com/wendal/gor.func.016: widget, err := builderFunc(cnf, topCtx)
/usr/local/Cellar/go/1.1.1/src/pkg/path/filepath/path.go:341 (0xa8dd0)
walk: err := walkFn(path, info, nil)
/usr/local/Cellar/go/1.1.1/src/pkg/path/filepath/path.go:359 (0xa908a)
walk: err = walk(Join(path, fileInfo.Name()), fileInfo, walkFn)
/usr/local/Cellar/go/1.1.1/src/pkg/path/filepath/path.go:380 (0xa9235)
Walk: return walk(root, info, walkFn)
/Users/saint/go/src/github.com/wendal/gor/widgets.go:148 (0x64c1f)
com/wendal/gor.LoadWidgets: })
/Users/saint/go/src/github.com/wendal/gor/compile.go:61 (0x4e193)
com/wendal/gor.Compile: widgets, widget_assets, err := LoadWidgets(topCtx)
/Users/saint/go/src/github.com/wendal/gor/gor/gor.go:68 (0x26c4)
main: err := gor.Compile()
/usr/local/Cellar/go/1.1.1/src/pkg/runtime/proc.c:182 (0x19392)
main: main·main();
/usr/local/Cellar/go/1.1.1/src/pkg/runtime/proc.c:1223 (0x1b360)
goexit: runtime·goexit(void)
comment里面的配置文件
layout : uyan
uyan :
uid : jekyllbootstrap
livefyre :
site_id : 123
intensedebate :
account : 123abc
facebook :
appid : 123
num_posts: 5
width: 580
colorscheme: light
现在用多说的挂件,用着感觉不错^_^
uyan的uid是数字哦, 写字母不行的啊
哦,靠,知道了, merge之后,少了个return
// 其他的,想不到还有啥,哈哈,需要其他的就报个issue吧 return nil, errors.New("CommentsWidget Only for disqus yet")
lz代码里,嘿嘿。。。。
针对天朝特色,可以考虑支持友言,中国版的disqus,顺便增加下“加网”提供一键式站外分享^_^