diff --git a/Gemfile b/Gemfile index 52827af..ed02c2f 100644 --- a/Gemfile +++ b/Gemfile @@ -1,21 +1,9 @@ -source "https://rubygems.org" +source 'https://rubygems.org' -# Hello! This is where you manage which Jekyll version is used to run. -# When you want to use a different version, change it below, save the -# file and run `bundle install`. Run Jekyll with `bundle exec`, like so: -# -# bundle exec jekyll serve -# -# This will help ensure the proper Jekyll version is running. -# Happy Jekylling! -gem "jekyll", "~> 3.8.5" +gem 'jekyll', '4.0.0' -# If you have any plugins, put them here! group :jekyll_plugins do - gem "jekyll-paginate-v2", "~>1.7" - gem "jekyll-sitemap", "1.2.0" - gem "jekyll-seo-tag", "2.6.0" - gem 'jekyll-last-modified-at' + gem 'jekyll-seo-tag', '2.6.1' + gem 'jekyll-sitemap', '1.4.0' + gem 'jekyll-last-modified-at','1.1.0' end - - diff --git a/Gemfile.lock b/Gemfile.lock index e5993d0..cdfcd25 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -4,43 +4,46 @@ GEM addressable (2.7.0) public_suffix (>= 2.0.2, < 5.0) colorator (1.1.0) - concurrent-ruby (1.1.5) + concurrent-ruby (1.1.6) em-websocket (0.5.1) eventmachine (>= 0.12.9) http_parser.rb (~> 0.6.0) eventmachine (1.2.7) - ffi (1.12.1) + ffi (1.13.1) forwardable-extended (2.6.0) http_parser.rb (0.6.0) - i18n (0.9.5) + i18n (1.8.3) concurrent-ruby (~> 1.0) - jekyll (3.8.6) + jekyll (4.0.0) addressable (~> 2.4) colorator (~> 1.0) em-websocket (~> 0.5) - i18n (~> 0.7) - jekyll-sass-converter (~> 1.0) + i18n (>= 0.9.5, < 2) + jekyll-sass-converter (~> 2.0) jekyll-watch (~> 2.0) - kramdown (~> 1.14) + kramdown (~> 2.1) + kramdown-parser-gfm (~> 1.0) liquid (~> 4.0) mercenary (~> 0.3.3) pathutil (~> 0.9) - rouge (>= 1.7, < 4) + rouge (~> 3.0) safe_yaml (~> 1.0) - jekyll-last-modified-at (1.2.1) + terminal-table (~> 1.8) + jekyll-last-modified-at (1.1.0) jekyll (>= 3.7, < 5.0) posix-spawn (~> 0.3.9) - jekyll-paginate-v2 (1.9.4) - jekyll (~> 3.0) - jekyll-sass-converter (1.5.2) - sass (~> 3.4) - jekyll-seo-tag (2.6.0) - jekyll (~> 3.3) - jekyll-sitemap (1.2.0) - jekyll (~> 3.3) + jekyll-sass-converter (2.1.0) + sassc (> 2.0.1, < 3.0) + jekyll-seo-tag (2.6.1) + jekyll (>= 3.3, < 5.0) + jekyll-sitemap (1.4.0) + jekyll (>= 3.7, < 5.0) jekyll-watch (2.2.1) listen (~> 3.0) - kramdown (1.17.0) + kramdown (2.3.0) + rexml + kramdown-parser-gfm (1.1.0) + kramdown (~> 2.0) liquid (4.0.3) listen (3.2.1) rb-fsevent (~> 0.10, >= 0.10.3) @@ -48,28 +51,28 @@ GEM mercenary (0.3.6) pathutil (0.16.2) forwardable-extended (~> 2.6) - posix-spawn (0.3.13) - public_suffix (4.0.3) - rb-fsevent (0.10.3) + posix-spawn (0.3.15) + public_suffix (4.0.5) + rb-fsevent (0.10.4) rb-inotify (0.10.1) ffi (~> 1.0) - rouge (3.15.0) + rexml (3.2.4) + rouge (3.21.0) safe_yaml (1.0.5) - sass (3.7.4) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) + sassc (2.4.0) + ffi (~> 1.9) + terminal-table (1.8.0) + unicode-display_width (~> 1.1, >= 1.1.1) + unicode-display_width (1.7.0) PLATFORMS ruby DEPENDENCIES - jekyll (~> 3.8.5) - jekyll-last-modified-at - jekyll-paginate-v2 (~> 1.7) - jekyll-seo-tag (= 2.6.0) - jekyll-sitemap (= 1.2.0) + jekyll (= 4.0.0) + jekyll-last-modified-at (= 1.1.0) + jekyll-seo-tag (= 2.6.1) + jekyll-sitemap (= 1.4.0) BUNDLED WITH - 2.0.2 + 2.1.4 diff --git a/_config.yml b/_config.yml index e0412c7..e484464 100644 --- a/_config.yml +++ b/_config.yml @@ -36,7 +36,6 @@ social: plugins: - jekyll-sitemap - jekyll-seo-tag - - jekyll-paginate-v2 ### Plugin settings: diff --git a/_includes/cookiemonster.html b/_includes/cookiemonster.html index 2e24b33..e48216c 100644 --- a/_includes/cookiemonster.html +++ b/_includes/cookiemonster.html @@ -1,3 +1,4 @@ - +{% include relBase.html %} + diff --git a/_includes/liberapay.html b/_includes/liberapay.html index 9fe4f78..6109a44 100644 --- a/_includes/liberapay.html +++ b/_includes/liberapay.html @@ -1,3 +1,4 @@ +{% include relBase.html %} diff --git a/_includes/navmenu.html b/_includes/navmenu.html index acc58c1..9c5fda9 100644 --- a/_includes/navmenu.html +++ b/_includes/navmenu.html @@ -1,13 +1,14 @@ +{% include relBase.html %}
{% if page.collection != 'tracks' %} diff --git a/_includes/relBase.html b/_includes/relBase.html new file mode 100644 index 0000000..94ba93e --- /dev/null +++ b/_includes/relBase.html @@ -0,0 +1,12 @@ +{% assign relBase = '' %} +{% assign tempDepth = page.url | append: 'hackish-solution' | split: '/' | size | minus: 2 %} +{% for i in (1..tempDepth) %} + {% if forloop.last %} + {% assign relBase = relBase | append: ".." %} + {% else %} + {% assign relBase = relBase | append: "../" %} + {% endif %} +{% endfor %} +{% if relBase == '' %} + {% assign relBase = '.' %} +{% endif %} \ No newline at end of file diff --git a/_includes/seo.html b/_includes/seo.html index 408aaa2..51ba3fb 100644 --- a/_includes/seo.html +++ b/_includes/seo.html @@ -1,5 +1,5 @@ - +{% include relBase.html %} {% if page.collection == 'tracks' %}