perf(build): use jekyll-include-cache
plugin to reduce build time (#1098)
Resolve #1094 and add margin bottom for layout tags Co-authored-by: Jake Kerr <kodafox@gmail.com>
This commit is contained in:
parent
a60e90791d
commit
4fe145e980
6 changed files with 9 additions and 8 deletions
|
@ -45,7 +45,7 @@
|
|||
{{ site.title }}
|
||||
</title>
|
||||
|
||||
{% include favicons.html %}
|
||||
{% include_cached favicons.html %}
|
||||
|
||||
{% if site.resources.ignore_env != jekyll.environment and site.resources.self_hosted %}
|
||||
<link href="{{ site.data.origin[type].webfonts | relative_url }}" rel="stylesheet">
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<div id="search-result-wrapper" class="d-flex justify-content-center unloaded">
|
||||
<div class="col-11 post-content">
|
||||
<div id="search-hints">
|
||||
{% include trending-tags.html %}
|
||||
{% include_cached trending-tags.html %}
|
||||
</div>
|
||||
<div id="search-results" class="d-flex flex-wrap justify-content-center text-muted mt-3"></div>
|
||||
</div>
|
||||
|
|
|
@ -26,11 +26,11 @@ layout: compress
|
|||
<div id="main" class="container px-xxl-5">
|
||||
{% include topbar.html lang=lang %}
|
||||
{{ content }}
|
||||
{% include search-results.html lang=lang %}
|
||||
{% include_cached search-results.html lang=lang %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% include footer.html lang=lang %}
|
||||
{% include_cached footer.html lang=lang %}
|
||||
|
||||
<div id="mask"></div>
|
||||
|
||||
|
@ -71,6 +71,6 @@ layout: compress
|
|||
{% include mermaid.html %}
|
||||
{% endif %}
|
||||
|
||||
{% include search-loader.html %}
|
||||
{% include_cached search-loader.html %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -40,8 +40,8 @@ layout: default
|
|||
<!-- panel -->
|
||||
<div id="panel-wrapper" class="col-xl-3 ps-2 text-muted">
|
||||
<div class="access">
|
||||
{% include update-list.html lang=lang %}
|
||||
{% include trending-tags.html lang=lang %}
|
||||
{% include_cached update-list.html lang=lang %}
|
||||
{% include_cached trending-tags.html lang=lang %}
|
||||
</div>
|
||||
|
||||
{% for _include in layout.panel_includes %}
|
||||
|
|
|
@ -3,7 +3,7 @@ layout: page
|
|||
# All the Tags of posts.
|
||||
---
|
||||
|
||||
<div id="tags" class="d-flex flex-wrap mx-xl-2">
|
||||
<div id="tags" class="d-flex flex-wrap mx-xl-2 mb-5">
|
||||
{% assign tags = '' | split: '' %}
|
||||
{% for t in site.tags %}
|
||||
{% assign tags = tags | push: t[0] %}
|
||||
|
|
|
@ -31,5 +31,6 @@ Gem::Specification.new do |spec|
|
|||
spec.add_runtime_dependency "jekyll-seo-tag", "~> 2.7"
|
||||
spec.add_runtime_dependency "jekyll-archives", "~> 2.2"
|
||||
spec.add_runtime_dependency "jekyll-sitemap", "~> 1.4"
|
||||
spec.add_runtime_dependency "jekyll-include-cache", "~> 0.2"
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue