diff --git a/Gemfile b/Gemfile index 1c9b537..c6369c1 100644 --- a/Gemfile +++ b/Gemfile @@ -35,4 +35,5 @@ gem "wdm", :install_if => Gem.win_platform? gem "webrick", "~> 1.7" gem 'jekyll-date-localization', group: :jekyll_plugins -gem 'jekyll-multiple-languages-plugin' \ No newline at end of file +gem 'jekyll-multiple-languages-plugin' +gem 'jekyll_sort_natural', group: :jekyll_plugins \ No newline at end of file diff --git a/_Gemfile.lock b/_Gemfile.lock deleted file mode 100644 index c123f01..0000000 --- a/_Gemfile.lock +++ /dev/null @@ -1,106 +0,0 @@ -GEM - remote: http://rubygems.org/ - specs: - addressable (2.8.0) - public_suffix (>= 2.0.2, < 5.0) - backports (3.21.0) - colorator (1.1.0) - concurrent-ruby (1.1.9) - em-websocket (0.5.2) - eventmachine (>= 0.12.9) - http_parser.rb (~> 0.6.0) - eventmachine (1.2.7-x64-mingw32) - ffi (1.15.4-x64-mingw32) - forwardable-extended (2.6.0) - http_parser.rb (0.6.0) - i18n (1.8.10) - concurrent-ruby (~> 1.0) - jekyll (4.2.1) - addressable (~> 2.4) - colorator (~> 1.0) - em-websocket (~> 0.5) - i18n (~> 1.0) - jekyll-sass-converter (~> 2.0) - jekyll-watch (~> 2.0) - kramdown (~> 2.3) - kramdown-parser-gfm (~> 1.0) - liquid (~> 4.0) - mercenary (~> 0.4.0) - pathutil (~> 0.9) - rouge (~> 3.0) - safe_yaml (~> 1.0) - terminal-table (~> 2.0) - jekyll-admin (0.9.0) - jekyll (>= 3.3, < 5.0) - sinatra (~> 1.4) - sinatra-contrib (~> 1.4) - jekyll-feed (0.15.1) - jekyll (>= 3.7, < 5.0) - jekyll-sass-converter (2.1.0) - sassc (> 2.0.1, < 3.0) - jekyll-watch (2.2.1) - listen (~> 3.0) - kramdown (2.3.1) - rexml - kramdown-parser-gfm (1.1.0) - kramdown (~> 2.0) - liquid (4.0.3) - listen (3.7.0) - rb-fsevent (~> 0.10, >= 0.10.3) - rb-inotify (~> 0.9, >= 0.9.10) - mercenary (0.4.0) - multi_json (1.15.0) - pathutil (0.16.2) - forwardable-extended (~> 2.6) - public_suffix (4.0.6) - rack (1.6.13) - rack-protection (1.5.5) - rack - rack-test (1.1.0) - rack (>= 1.0, < 3) - rb-fsevent (0.11.0) - rb-inotify (0.10.1) - ffi (~> 1.0) - rexml (3.2.5) - rouge (3.26.1) - safe_yaml (1.0.5) - sassc (2.4.0-x64-mingw32) - ffi (~> 1.9) - sinatra (1.4.8) - rack (~> 1.5) - rack-protection (~> 1.4) - tilt (>= 1.3, < 3) - sinatra-contrib (1.4.7) - backports (>= 2.0) - multi_json - rack-protection - rack-test - sinatra (~> 1.4.0) - tilt (>= 1.3, < 3) - terminal-table (2.0.0) - unicode-display_width (~> 1.1, >= 1.1.1) - thread_safe (0.3.6) - tilt (2.0.10) - tzinfo (1.2.9) - thread_safe (~> 0.1) - tzinfo-data (1.2021.5) - tzinfo (>= 1.0.0) - unicode-display_width (1.8.0) - wdm (0.1.1) - webrick (1.7.0) - -PLATFORMS - x64-mingw32 - -DEPENDENCIES - jekyll - jekyll-admin (= 0.9.0) - jekyll-feed - rack - tzinfo (~> 1.2) - tzinfo-data - wdm - webrick (~> 1.7) - -BUNDLED WITH - 2.2.30 diff --git a/_config.yml b/_config.yml index ccf7f5c..eff72bb 100644 --- a/_config.yml +++ b/_config.yml @@ -47,7 +47,7 @@ author-image: /assets/images/avatar_bleu.png # 60 Words About the Author author-about: > Développeur web freelance spécialisé Symfony et Angular. - Introverti hypersensible, idéaliste en quête de sens #ChildFree. #TDAH + Introverti hypersensible, idéaliste en quête de sens #ChildFree #TDAH #NonBinaire author-url: https://jaden-achain.dev # SASS diff --git a/_includes/categories.html b/_includes/categories.html index 3be3478..3da1da5 100644 --- a/_includes/categories.html +++ b/_includes/categories.html @@ -1,15 +1,16 @@ {% if post %} -{% assign categories = post.categories %} + {% assign categories = post.categories | sort_natural %} {% else %} -{% assign categories = page.categories %} + {% assign categories = page.categories | sort_natural %} {% endif %} + {%- unless categories.size == 0 -%}

{% for category in categories %} - {{category}} - {% unless forloop.last %} {% endunless %} + {{category}} + {% unless forloop.last %} {% endunless %} {% endfor %}

{%- endunless -%} \ No newline at end of file diff --git a/_layouts/categories.html b/_layouts/categories.html index 3aa9103..5535f4a 100644 --- a/_layouts/categories.html +++ b/_layouts/categories.html @@ -1,23 +1,22 @@ --- layout: page -permalink: /categories/ -title: Categories --- +{% assign sorted_cats = site.categories | sort_natural %}
- {% for category in site.categories %} + {% for category in sorted_cats %}
{% capture category_name %}{{ category | first }}{% endcapture %}
-

{{ category_name }}

+ {% for post in site.categories[category_name] %} - + {% endfor %}
{% endfor %}