From 6f57912f5c2b4d876b7a2e05a5ab03683538f197 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Fri, 15 Apr 2016 21:01:22 -0400 Subject: [PATCH] WIP --- _includes/base.html | 6 ++++++ _layouts/post.html | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 _includes/base.html 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