From 28fc21c90e06436f132304205c29858caacdd234 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Wed, 4 Oct 2017 10:02:57 +0800 Subject: [PATCH] No really, fix it for real --- _includes/2017/meta-vars.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/_includes/2017/meta-vars.html b/_includes/2017/meta-vars.html index ccd39245c..a4b062f83 100644 --- a/_includes/2017/meta-vars.html +++ b/_includes/2017/meta-vars.html @@ -16,6 +16,7 @@ It emits some blank lines because Jekyll, lol. {% assign depth = page.url | split: '/' | size | minus: 1 %} +{% assign base = '' %} {% if depth <= 1 %}{% assign base = '.' %} {% elsif depth == 2 %}{% 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 %} {% assign meta_description = meta_description | strip_newlines %} -{% assign base = '' %} - {% capture page_url %}{{ site.url }}{{ page.url | remove: '.html' }}{% endcapture %}