fix relative paths
This commit is contained in:
parent
920762f564
commit
87050e1389
|
@ -1,12 +0,0 @@
|
|||
{% 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
|
||||
%}
|
|
@ -6,7 +6,18 @@
|
|||
{% comment %}
|
||||
congratulations! you've found it.
|
||||
{% endcomment %}
|
||||
{% include base.html %}
|
||||
{% assign base = ''
|
||||
%}{% assign depth = page.url | split: '/' | size
|
||||
%}{% if depth <= 1
|
||||
%}{% assign base = '.'
|
||||
%}{% elsif depth == 2
|
||||
%}{% assign base = '..'
|
||||
%}{% elsif depth == 3
|
||||
%}{% assign base = '../..'
|
||||
%}{% elsif depth == 4
|
||||
%}{% assign base = '../../..'
|
||||
%}{% endif
|
||||
%}
|
||||
{% include meta.html %}
|
||||
{% include css.html %}
|
||||
<title>{{ page.title }}</title>
|
||||
|
|
Loading…
Reference in New Issue