Fix back buttons, oops

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

View File

@ -14,6 +14,8 @@ It emits some blank lines because Jekyll, lol.
{% endcomment %}
{% assign depth = page.url | split: '/' | size | minus: 1 %}
{% if depth <= 1 %}{% assign base = '.' %}
{% elsif depth == 2 %}{% assign base = '..' %}
{% elsif depth == 3 %}{% assign base = '../..' %}
@ -33,6 +35,4 @@ It emits some blank lines because Jekyll, lol.
{% assign base = '' %}
{% assign depth = page.url | split: '/' | size | minus: 1 %}
{% capture page_url %}{{ site.url }}{{ page.url | remove: '.html' }}{% endcapture %}