xiangming / landscape-plus

针对中国大陆地区对hexo官方主题landscape进行优化。
http://xiangming.github.io/landscape-plus/
MIT License
510 stars 107 forks source link

字体和生成速度问题 #13

Closed qilicun closed 10 years ago

qilicun commented 10 years ago

你好,我用了这个主题,发现文章的字体也是黑体那样子看着有点须虚不是很舒服,怎样修改成原来主题的字体? 另外用默认的主题生成速度大概是3s不到,用了这个主题生成速度特别慢,大概超过40s,请问是那个插件或者配置托慢了速度吗? 谢谢

xiangming commented 10 years ago

字体原来的样式我只是注释了,没有删除,你可以到source/css/_variables.styl里面取消注释,你说的字体太黑,应该是这句,你取消//color-default = #555的注释就可以了。

color-default = #000
//color-default = #555

如果字体你想换回去,是这一句,也取消注释就行:

font-sans = "微软雅黑","Microsoft Yahei", "Droid Sans", Helvetica Neue, Helvetica, Arial, sans-serif
//font-sans = "Helvetica Neue", Helvetica, Arial, sans-serif

另外生成速度的问题,应该不是主题的原因,我这里两个主题都很快~

qilicun commented 10 years ago

晚上回去再试试,我觉得应该不是电脑CPU的原因,之前用light主题,如果自己不增加一些插件,比如多说,微博,最新评论这些的话。100多篇文章加图片大概就3s钟,加了插件就会特别慢,超过40s。请问你有没有比较过具体的生成时间?

xiangming commented 10 years ago

但是landscape-plus主题并不支持多说,微博和最新评论这些。我文章很少,都是不到1秒钟~

xbin999 commented 10 years ago

生成速度差好多啊,我同样的机器上,使用landscape: [info] Files loaded in 13.846s [update] Generated: archives/index.html (1775ms) [update] Generated: archives/page/2/index.html (53ms) [update] Generated: archives/page/3/index.html (56ms) [update] Generated: archives/page/4/index.html (57ms) [update] Generated: archives/page/5/index.html (75ms) ... 使用landscape-plus: [info] Files loaded in 12.887s [update] Generated: archives/index.html (1713ms) [update] Generated: archives/page/2/index.html (1746ms) [update] Generated: archives/page/3/index.html (1696ms) [update] Generated: archives/page/4/index.html (1812ms) [update] Generated: archives/page/5/index.html (1746ms) ...

xiangming commented 10 years ago

@xbin999 问题已证实。

我reopen这条,看看我能做些什么。

xiangming commented 10 years ago

@xbin999 已作优化,你看看速度是否正常?

xbin999 commented 10 years ago

@xiangming 速度正常了,赞。

xiangming commented 10 years ago

@xbin999 多交流~

tsaoshuang commented 9 years ago

怎么修改成 首页文章显示摘要啊?

chinamobiler commented 9 years ago

找到 index.ejs 修改成摘要