Skip to content

Commit 4fe145e

Browse files
cotes2020jakerr
andauthored
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>
1 parent a60e907 commit 4fe145e

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

_includes/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
{{ site.title }}
4646
</title>
4747

48-
{% include favicons.html %}
48+
{% include_cached favicons.html %}
4949

5050
{% if site.resources.ignore_env != jekyll.environment and site.resources.self_hosted %}
5151
<link href="{{ site.data.origin[type].webfonts | relative_url }}" rel="stylesheet">

_includes/search-results.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div id="search-result-wrapper" class="d-flex justify-content-center unloaded">
44
<div class="col-11 post-content">
55
<div id="search-hints">
6-
{% include trending-tags.html %}
6+
{% include_cached trending-tags.html %}
77
</div>
88
<div id="search-results" class="d-flex flex-wrap justify-content-center text-muted mt-3"></div>
99
</div>

_layouts/default.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
<div id="main" class="container px-xxl-5">
2727
{% include topbar.html lang=lang %}
2828
{{ content }}
29-
{% include search-results.html lang=lang %}
29+
{% include_cached search-results.html lang=lang %}
3030
</div>
3131
</div>
3232

33-
{% include footer.html lang=lang %}
33+
{% include_cached footer.html lang=lang %}
3434

3535
<div id="mask"></div>
3636

@@ -71,6 +71,6 @@
7171
{% include mermaid.html %}
7272
{% endif %}
7373

74-
{% include search-loader.html %}
74+
{% include_cached search-loader.html %}
7575
</body>
7676
</html>

_layouts/page.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ <h1 class="dynamic-title">
4040
<!-- panel -->
4141
<div id="panel-wrapper" class="col-xl-3 ps-2 text-muted">
4242
<div class="access">
43-
{% include update-list.html lang=lang %}
44-
{% include trending-tags.html lang=lang %}
43+
{% include_cached update-list.html lang=lang %}
44+
{% include_cached trending-tags.html lang=lang %}
4545
</div>
4646

4747
{% for _include in layout.panel_includes %}

_layouts/tags.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# All the Tags of posts.
44
---
55

6-
<div id="tags" class="d-flex flex-wrap mx-xl-2">
6+
<div id="tags" class="d-flex flex-wrap mx-xl-2 mb-5">
77
{% assign tags = '' | split: '' %}
88
{% for t in site.tags %}
99
{% assign tags = tags | push: t[0] %}

jekyll-theme-chirpy.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@ Gem::Specification.new do |spec|
3131
spec.add_runtime_dependency "jekyll-seo-tag", "~> 2.7"
3232
spec.add_runtime_dependency "jekyll-archives", "~> 2.2"
3333
spec.add_runtime_dependency "jekyll-sitemap", "~> 1.4"
34+
spec.add_runtime_dependency "jekyll-include-cache", "~> 0.2"
3435

3536
end

0 commit comments

Comments
 (0)