From e64dff274456b1f17a5212f3839ac56305b4d4cc Mon Sep 17 00:00:00 2001 From: codecalm Date: Sun, 18 Apr 2021 15:37:38 +0200 Subject: mushroom, pizza fixes --- Gemfile | 4 +++- _config.yml | 3 +++ src/_icons/mushroom.svg | 1 + src/_icons/pizza.svg | 6 +++--- src/_includes/toolbar.html | 2 +- src/_layouts/icon.html | 2 +- src/editor.html | 8 ++++---- src/index.html | 4 ++-- src/tags.html | 2 +- 9 files changed, 19 insertions(+), 13 deletions(-) diff --git a/Gemfile b/Gemfile index 9fa14ecf..b8e8a25e 100644 --- a/Gemfile +++ b/Gemfile @@ -2,4 +2,6 @@ source "https://rubygems.org" git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } -gem "jekyll", "~> 4.1.1" +gem "jekyll", "~> 4.2" + +gem "jekyll-include-cache", "~> 0.2.1" diff --git a/_config.yml b/_config.yml index 61bf6bde..7bfbbce9 100644 --- a/_config.yml +++ b/_config.yml @@ -3,6 +3,9 @@ source: src host: 0.0.0.0 port: 4001 +plugins: + - jekyll-include-cache + exclude: - .idea - package.json diff --git a/src/_icons/mushroom.svg b/src/_icons/mushroom.svg index 9fb98b2b..1ce14795 100644 --- a/src/_icons/mushroom.svg +++ b/src/_icons/mushroom.svg @@ -1,4 +1,5 @@ --- +category: Food --- diff --git a/src/_icons/pizza.svg b/src/_icons/pizza.svg index 388142e4..bfb41fee 100644 --- a/src/_icons/pizza.svg +++ b/src/_icons/pizza.svg @@ -3,7 +3,7 @@ version: 1.35 --- - - - + + + diff --git a/src/_includes/toolbar.html b/src/_includes/toolbar.html index afca9005..e3f5283d 100644 --- a/src/_includes/toolbar.html +++ b/src/_includes/toolbar.html @@ -5,7 +5,7 @@ {% assign buttons = group | split: ',' %}
{% for button in buttons %} -
{% include icon.html name=button %}
+
{% include_cached icon.html name=button %}
{% endfor %}
{% endfor %} diff --git a/src/_layouts/icon.html b/src/_layouts/icon.html index 532da97c..4ef8c28d 100644 --- a/src/_layouts/icon.html +++ b/src/_layouts/icon.html @@ -1,3 +1,3 @@ --- --- -{% include icon.html name=page.slug %} +{% include_cached icon.html name=page.slug %} diff --git a/src/editor.html b/src/editor.html index e1cca14c..f573cc88 100644 --- a/src/editor.html +++ b/src/editor.html @@ -10,7 +10,7 @@ layout: default {% assign first-icon = site.icons | reverse | first %} {% assign slug = first-icon.slug %} {% capture first-icon %} - {% include icon.html name=slug %} + {% include_cached icon.html name=slug %} {% endcapture %}
@@ -76,7 +76,7 @@ layout: default
{% include toolbar.html - toolbar='arrow-back-up,arrow-forward-up,printer,paint|bold,italic,underline,strikethrough,emphasis|align-left,align-center,align-right,align-justified,line-height|list,list-check|h-1,h-2,h-3,h-4,h-5,h-6,link,photo,table|sort-ascending,sort-descending,sort-ascending-letters,sort-ascending-numbers|indent-increase,indent-decrease|subscript,superscript|minus,omega,chart-area-line,pencil|eraser,settings,typography,letters-case,clear-formatting|parentheses,brackets,braces,terminal|bike,run,swimming,walk,pray,fall,karate|repeat,repeat-once,switch,player-record,player-play,player-pause,player-stop,power,player-skip-forward,player-skip-back,player-track-next,player-track-prev' + toolbar='arrow-back-up,arrow-forward-up,printer,paint|bold,italic,underline,strikethrough,emphasis|align-left,align-center,align-right,align-justified,line-height|list,list-check,list-numbers|h-1,h-2,h-3,h-4,h-5,h-6,link,photo,table|sort-ascending,sort-descending,sort-ascending-letters,sort-ascending-numbers|indent-increase,indent-decrease|subscript,superscript|minus,omega,chart-area-line,pencil|eraser,settings,typography,letters-case,clear-formatting|parentheses,brackets,braces,terminal|bike,run,swimming,walk,pray,fall,karate|repeat,repeat-once,switch,player-record,player-play,player-pause,player-stop,power,player-skip-forward,player-skip-back,player-track-next,player-track-prev' %}
@@ -91,7 +91,7 @@ layout: default {% for icon in new-icons %} {% assign name = icon.slug %} - {% include icon.html name=name %} + {% include_cached icon.html name=name %} {% endfor %}
@@ -115,7 +115,7 @@ layout: default {% for icon in category.items %} {% assign name = icon.slug %} - {% include icon.html name=name %} + {% include_cached icon.html name=name %} {% endfor %} diff --git a/src/index.html b/src/index.html index f8fc5f9f..5e409a7a 100644 --- a/src/index.html +++ b/src/index.html @@ -8,7 +8,7 @@ layout: default {% for icon in site.icons %} {% assign name = icon.slug %}
- {% include icon.html name=name %} + {% include_cached icon.html name=name %}
{% endfor %} @@ -20,7 +20,7 @@ layout: default {% for icon in site.icons %} {% assign name = icon.slug %}
- {% include icon.html name=name stroke=1.25 %} + {% include_cached icon.html name=name stroke=1.25 %}
{% endfor %} diff --git a/src/tags.html b/src/tags.html index 8148f92e..fbd5b54d 100644 --- a/src/tags.html +++ b/src/tags.html @@ -8,7 +8,7 @@ layout: default {% for icon in site.icons %} - + -- cgit v1.2.1
{% include icon.html name=icon.slug %}{% include_cached icon.html name=icon.slug %} {{ icon.slug }} {{ icon.tags | join: ', ' }} {{ icon.category }}