Skip to content

Commit

Permalink
perf(build): use jekyll-include-cache plugin to reduce build time (#…
Browse files Browse the repository at this point in the history
…1098)

Resolve #1094 and add margin bottom for layout tags

Co-authored-by: Jake Kerr <kodafox@gmail.com>
  • Loading branch information
cotes2020 and jakerr authored Jun 19, 2023
1 parent a60e907 commit 4fe145e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
2 changes: 1 addition & 1 deletion _includes/search-results.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
6 changes: 3 additions & 3 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
<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>

Expand Down Expand Up @@ -71,6 +71,6 @@
{% include mermaid.html %}
{% endif %}

{% include search-loader.html %}
{% include_cached search-loader.html %}
</body>
</html>
4 changes: 2 additions & 2 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ <h1 class="dynamic-title">
<!-- 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 %}
Expand Down
2 changes: 1 addition & 1 deletion _layouts/tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# 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] %}
Expand Down
1 change: 1 addition & 0 deletions jekyll-theme-chirpy.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4fe145e

Please sign in to comment.