Skip to content
Permalink
Browse files

Use jekyll-include-cache

`bundle exec jekyll build --profile`:
- before : about 130s
- after  : about 35s
  • Loading branch information...
znz committed Aug 7, 2019
1 parent 5f7d519 commit ba1a093965f6cc9037308b074b5c9bf5b88c7de7
Showing with 13 additions and 9 deletions.
  1. +1 −0 Gemfile
  2. +3 −0 Gemfile.lock
  3. +1 −0 _config.yml
  4. +7 −0 _includes/amp-custom.html
  5. +1 −9 _includes/head.html
@@ -7,5 +7,6 @@ gem 'jekyll-minifier', group: :jekyll_plugins
gem 'jekyll-sitemap', group: :jekyll_plugins
gem 'jekyll-last-modified-at', group: :jekyll_plugins
gem 'jekyll-tagging', group: :jekyll_plugins
gem 'jekyll-include-cache', group: :jekyll_plugins
gem 'nokogiri'
gem 'fastimage'
@@ -33,6 +33,8 @@ GEM
safe_yaml (~> 1.0)
jekyll-compose (0.11.0)
jekyll (>= 3.7, < 5.0)
jekyll-include-cache (0.2.0)
jekyll (>= 3.7, < 5.0)
jekyll-last-modified-at (1.1.0)
jekyll (>= 3.7, < 5.0)
posix-spawn (~> 0.3.9)
@@ -90,6 +92,7 @@ DEPENDENCIES
fastimage
jekyll
jekyll-compose
jekyll-include-cache
jekyll-last-modified-at
jekyll-minifier
jekyll-paginate
@@ -48,6 +48,7 @@ kramdown:
plugins:
- jekyll-paginate
- jekyll-last-modified-at
- jekyll-include-cache

permalink: /:categories/:year-:month-:day-:title.html
strict_front_matter: true
@@ -0,0 +1,7 @@
<style amp-custom>
{% capture include_to_scssify %}
{% include styles.scss %}
{% include custom.scss %}
{% endcapture %}
{{ include_to_scssify | scssify }}
</style>
@@ -42,15 +42,7 @@
</script>

<link href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" rel="stylesheet">
<style amp-custom>
{% capture include_to_scssify %}
{% include styles.scss %}
{% include custom.scss %}
{% endcapture %}
{{ include_to_scssify | scssify }}
</style>


{% include_cached amp-custom.html %}

<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
<script async src="https://cdn.ampproject.org/v0.js"></script>

0 comments on commit ba1a093

Please sign in to comment.
You can’t perform that action at this time.