Skip to content

Commit 2243db4

Browse files
authored
Merge pull request #14 from dannycolin/enable-caching
Add jekyll-include-cache gem
2 parents a39ec8d + bf6d721 commit 2243db4

4 files changed

Lines changed: 10 additions & 5 deletions

File tree

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ sass:
99

1010
markdown: kramdown
1111
plugins:
12+
- jekyll-include-cache
1213
- jekyll-sitemap
1314
exclude:
1415
- Gemfile

_includes/footer.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22
<div class="inner">
33
<ul id="socials">
44
{%- for social in site.data.socials -%}
5-
<li><a href="{{ social.url }}" title="{{ social.name }}" rel="me" target="_blank">{% include icons/{{ social.icon }} %}<span class="sr-only">{{ social.name }}</span></a></li>{%- endfor -%}
5+
<li><a href="{{ social.url }}" title="{{ social.name }}" rel="me" target="_blank">{% include_cached icons/{{ social.icon }} %}<span class="sr-only">{{ social.name }}</span></a></li>{%- endfor -%}
66
</ul>
7-
{% capture license %}{% include icons/creative-commons.svg size="24" %}{% include icons/creative-commons-by.svg size="24" %}{% include icons/creative-commons-sa.svg size="24" %}{% endcapture %}
7+
{% capture license %}
8+
{% include_cached icons/creative-commons.svg size="24" %}
9+
{% include_cached icons/creative-commons-by.svg size="24" %}
10+
{% include_cached icons/creative-commons-sa.svg size="24" %}
11+
{% endcapture %}
812
<hr/>
913
<div id="bottom-footer">
1014
<span>Copyright &copy; 1998-{{ site.time | date: "%Y" }} bugzilla.org contributors</span>

_layouts/base.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
{% include head.html %}
3+
{% include_cached head.html %}
44
<body id="www-bugzilla-org" class="homepage">
55
{% include header.html %}
66
{% include socials.html %}
77
<main>
88
{{ content }}
99
</main>
10-
{% include footer.html %}
10+
{% include_cached footer.html %}
1111
</body>
1212
</html>

_layouts/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="card">
66
<p class="date muted">{{ page.date | date: '%d. %B %Y' }}</p>
77
<h1 class="title">{{ page.title }}</h1>
8-
{% include authors.html authors=page.author %}
8+
{% include_cached authors.html authors=page.author %}
99
{{ content }}
1010
</div>
1111
</div>

0 commit comments

Comments
 (0)