Cache "static" includes to improve build performance (#1874)

* Add jekyll-include-cache plugin
* Cache "static" includes to improve build performance
* Update CHANGELOG and history

"Static" refers to those includes that don't rely on data passed from the page content.
This commit is contained in:
Michael Rose
2018-10-04 15:48:26 -04:00
committed by GitHub
parent c801107754
commit e704cd40d4
8 changed files with 20 additions and 11 deletions

View File

@@ -16,8 +16,8 @@
<body class="layout--{{ page.layout | default: layout.layout }}{% if page.classes or layout.classes %}{{ page.classes | default: layout.classes | join: ' ' | prepend: ' ' }}{% endif %}">
{% include browser-upgrade.html %}
{% include masthead.html %}
{% include_cached browser-upgrade.html %}
{% include_cached masthead.html %}
<div class="initial-content">
{{ content }}
@@ -25,18 +25,18 @@
{% if site.search == true %}
<div class="search-content">
{% include search/search_form.html %}
{% include_cached search/search_form.html %}
</div>
{% endif %}
<div class="page__footer">
<footer>
{% include footer/custom.html %}
{% include footer.html %}
{% include_cached footer.html %}
</footer>
</div>
{% include scripts.html %}
{% include_cached scripts.html %}
</body>
</html>