diff --git a/_includes/base.html b/_includes/base.html new file mode 100644 index 00000000..c6fc8d3f --- /dev/null +++ b/_includes/base.html @@ -0,0 +1,6 @@ +{% assign base = '' %} +{% assign depth = page.url | split: '/' | size | minus: 1 %} +{% if depth == 1 %}{% assign base = '.' %} +{% elsif depth == 2 %}{% assign base = '..' %} +{% elsif depth == 3 %}{% assign base = '../..' %} +{% elsif depth == 4 %}{% assign base = '../../..' %}{% endif %} diff --git a/_layouts/post.html b/_layouts/post.html index fa4e7b79..151fa516 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -6,7 +6,7 @@ - + Cyclone