From a02d80530b6d48a995233477de001c9505dd6ee0 Mon Sep 17 00:00:00 2001 From: Misty Stanley-Jones Date: Mon, 13 Mar 2017 17:25:03 -0700 Subject: [PATCH] Use the jekyll-include-cache plugin to shave off some page building time (#2290) --- Gemfile | 1 + _config.yml | 1 + _includes/global-header.html | 2 +- _includes/header.html | 2 +- _layouts/docs.html | 2 +- 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index 5675358aba..abec932944 100644 --- a/Gemfile +++ b/Gemfile @@ -4,3 +4,4 @@ source "https://rubygems.org" # Please ensure, before upgrading, that this version exists as a tag in starefossen/github-pages here: # https://hub.docker.com/r/starefossen/github-pages/tags/ gem "github-pages", "112" +gem "jekyll-include-cache" diff --git a/_config.yml b/_config.yml index c01216a747..11fcf4515c 100644 --- a/_config.yml +++ b/_config.yml @@ -17,6 +17,7 @@ gems: - jekyll-redirect-from - jekyll-seo-tag - jekyll-relative-links + - jekyll-include-cache webrick: headers: diff --git a/_includes/global-header.html b/_includes/global-header.html index a4a3cecb96..194b703d14 100644 --- a/_includes/global-header.html +++ b/_includes/global-header.html @@ -89,7 +89,7 @@
- {% include archive-list.html %} + {% include_cached archive-list.html %}
diff --git a/_includes/header.html b/_includes/header.html index b007ec9840..dd6fe5f530 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -33,7 +33,7 @@
- {% include archive-list.html %} + {% include_cached archive-list.html %}
diff --git a/_layouts/docs.html b/_layouts/docs.html index b7625ef5bc..907059aec7 100644 --- a/_layouts/docs.html +++ b/_layouts/docs.html @@ -181,7 +181,7 @@ else %}{% assign edit_url = "" %}{% endif %} {% break %} {% endif %} {% endfor %