-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tag 功能没完成? #55
Comments
添加Tag会出错? 我这里还真没遇到过,麻烦贴下详细的错误信息哈. |
|
貌似是除0报错, if tags and len(tags) > 0:
s = list(map(lambda t: (t, t.get_article_count()), tags))
count = sum(map(lambda t: t[1], s))
dd = count / len(tags)
sidebar_tags = list(map(lambda x: (x[0], x[1], (x[1] / dd) * increment + 10), s)) 是 |
大概知道了,可能是dd这个变量是0,也就是count这个变量是0,麻烦你打印下看看是不是这个原因,我晚点修复下,谢谢. |
是的,我加了一个判断 |
另外,在微信里命令可以执行,但是文章点击进去就报404,请问还需要配置哪里吗? |
404的话看看 |
是域名不对,微信文章链接、sitemap、RSS 里面都是“example.com",请问可以在 settings 里统一设置域名吗?或者把域名设置成SITE_URL也可以。 |
在后台的站点配置中,将默认站点的修改为你的地址就可以了。 |
我也发现了这个错误 |
一旦添加任何 Tag,页面就出错,删光所有 Tag 就正常了。
The text was updated successfully, but these errors were encountered: