No really, fix it for real

This commit is contained in:
Rico Sta. Cruz 2017-10-04 10:02:57 +08:00
parent b9c28e5d7e
commit 28fc21c90e
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 1 additions and 2 deletions

View File

@ -16,6 +16,7 @@ It emits some blank lines because Jekyll, lol.
{% assign depth = page.url | split: '/' | size | minus: 1 %} {% assign depth = page.url | split: '/' | size | minus: 1 %}
{% assign base = '' %}
{% if depth <= 1 %}{% assign base = '.' %} {% if depth <= 1 %}{% assign base = '.' %}
{% elsif depth == 2 %}{% assign base = '..' %} {% elsif depth == 2 %}{% assign base = '..' %}
{% elsif depth == 3 %}{% assign base = '../..' %} {% elsif depth == 3 %}{% assign base = '../..' %}
@ -33,6 +34,4 @@ It emits some blank lines because Jekyll, lol.
{% capture meta_description %}{% include values/description.html page=include.page %}{% endcapture %} {% capture meta_description %}{% include values/description.html page=include.page %}{% endcapture %}
{% assign meta_description = meta_description | strip_newlines %} {% assign meta_description = meta_description | strip_newlines %}
{% assign base = '' %}
{% capture page_url %}{{ site.url }}{{ page.url | remove: '.html' }}{% endcapture %} {% capture page_url %}{{ site.url }}{{ page.url | remove: '.html' }}{% endcapture %}