java 基尔_杰基尔的缓慢再生

在您的网站上运行 jekyll serve --profile 并检查花费更多时间进行渲染 . 它应该输出一个看起来像这样的表 .

Filename | Count | Bytes | Time

----------------------------------------------------------------------+-------+----------+------

_layouts/compress.html | 73 | 1649.86K | 1.526

_layouts/default.html | 72 | 1874.79K | 0.445

_layouts/post.html | 58 | 980.02K | 0.307

_posts/2015-12-10-how-to-create-and-host-a-website-on-github-pages.md | 1 | 9.36K | 0.294

feed.xml | 1 | 34.74K | 0.105

_includes/prev-next.html | 58 | 39.17K | 0.053

sitemap.xml | 1 | 19.90K | 0.035

_pages/archive.md | 1 | 28.98K | 0.035

_posts/2017-02-15-jekyll-sort-filters.md | 1 | 16.09K | 0.019

_includes/ga_data_fetch.html | 58 | 41.77K | 0.018

_includes/disqus-script.html | 58 | 30.89K | 0.018

_pages/tags.html | 1 | 14.97K | 0.015

这应该可以让您对问题存在的位置有一个很好的了解 .

现在,在对网站进行更改时,如果只想渲染已更改的文件,请使用 jekyll serve --incremental 或 jekyll serve -I .

增量构建仍然存在Jekyll团队正在研究的一些问题 .

只渲染您正在编写的最新帖子的方便选项是 jekyll serve --watch --limit_posts 1 . 在写新帖时,这为我节省了很多时间 .

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值