Haojen / hexo-theme-Anisina

:art: A simple responsive, support qiniu image cdn theme for hexo https://haojen.github.io/
Apache License 2.0
763 stars 155 forks source link

怎样使tags根据频率显示不同色彩? #28

Closed matrix-42 closed 8 years ago

matrix-42 commented 8 years ago

我按照步骤设置tags, 现在tags都是灰色的, 并没有任何颜色. 不知道是不是有什么需要额外设置的地方?

perixiaowan commented 8 years ago

不需要设置,它会根据你的文章设置的标签,进行统计,根据标签使用的热度自动对颜色进行加深处理。我看了下你的博客,目前只有一篇,且标签都只使用一次,所以都是灰色的。

matrix-42 commented 8 years ago

@perixiaowan 我加更多的博客, 依然是这样, 很奇怪. 不过谢谢哈, 我再研究研究

perixiaowan commented 8 years ago

(index):773 Mixed Content: The page at 'https://matrix-42.github.io/tags/' was loaded over HTTPS, but requested an insecure script 'http://matrix-42.github.io/js/jquery.tagcloud.js'. This request has been blocked; the content must be served over HTTPS.

我看了你的网页,你的标签上没有样式,你看看不加安全的http访问是否正常?如果正常的话,而你又想通过https访问,可以将链接更改为“https://matrix-42.github.io/js/jquery.tagcloud.js” 这个js和标签的颜色相关

matrix-42 commented 8 years ago

@perixiaowan 将 config 里的 url 改为 https 开头, 问题得以解决. 十分感谢 请问你用的什么Debug工具, 不是做前端的不太懂.

perixiaowan commented 8 years ago

chrome即可调试,f12; Firefox也行,需要装个firebug插件

matrix-42 commented 8 years ago

@perixiaowan Many thanks!

perixiaowan commented 8 years ago

不客气