Move repeated details to variables _config.yml and general cleanup

This commit is contained in:
2015-12-19 22:14:21 +00:00
parent cfeacd564d
commit ccc35d3be0
12 changed files with 60 additions and 69 deletions

6
_includes/base.html Normal file
View File

@@ -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 %}