realtive paths
This commit is contained in:
parent
cf9f74516f
commit
6dd63fd195
11 changed files with 77 additions and 54 deletions
|
|
@ -1,3 +1,4 @@
|
|||
{% include relBase.html %}
|
||||
<!-- BEGIN cookiemonster.html -->
|
||||
<img src="{{ site.baseurl }}/assets/img/cookiemonster_upsidedown.gif" style="position:relative;top:0;right:0;z-index:77777;"/>
|
||||
<img src="{{ relBase }}/assets/img/cookiemonster_upsidedown.gif" style="position:relative;top:0;right:0;z-index:77777;"/>
|
||||
<!-- END cookiemonster.html -->
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
{% include relBase.html %}
|
||||
<!-- BEGIN liberapay.html -->
|
||||
<a href="https://liberapay.com/Sakrecoer/donate" target="_blank" rel="noopener noreferrer nofollow"><img alt="Donate using Liberapay" src="/assets/img/donate.svg"></a>
|
||||
<a href="https://liberapay.com/Sakrecoer/donate" target="_blank" rel="noopener noreferrer nofollow"><img alt="Donate using Liberapay" src="{{ relBase }}/assets/img/donate.svg"></a>
|
||||
<!-- END liberapay.html -->
|
||||
|
|
|
|||
|
|
@ -1,13 +1,14 @@
|
|||
<!-- BEGIN navmenu.html -->
|
||||
{% include relBase.html %}
|
||||
<div id="navigation">
|
||||
{% if page.collection == 'tracks' %}
|
||||
<a href="{{ site.baseurl }}./#{{ page.uid }}" alt="Back" title="Back">
|
||||
<a href="{{ relBase }}/music/#{{ page.uid }}" alt="Back" title="Back">
|
||||
{% elsif page.url != '/music/' %}
|
||||
<a href="{{ site.baseurl }}/music/" alt="Music" title="Music">
|
||||
<a href="{{ relBase }}/music/" alt="Music" title="Music">
|
||||
{% else %}
|
||||
<a href="{{ site.baseurl }}/" alt="Back" title="About">
|
||||
<a href="{{ relBase }}/" alt="Back" title="About">
|
||||
{% endif %}
|
||||
<img src="{{ site.baseurl }}/assets/img/sakrecoer-logo.svg" width="125px" height="125px" alt="Sakrecoer Logo" />
|
||||
<img src="{{ relBase }}/assets/img/sakrecoer-logo.svg" width="125px" height="125px" alt="Sakrecoer Logo" />
|
||||
</a>
|
||||
</div>
|
||||
{% if page.collection != 'tracks' %}
|
||||
|
|
|
|||
12
_includes/relBase.html
Normal file
12
_includes/relBase.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{% assign relBase = '' %}
|
||||
{% assign tempDepth = page.url | append: 'hackish-solution' | split: '/' | size | minus: 2 %}
|
||||
{% for i in (1..tempDepth) %}
|
||||
{% if forloop.last %}
|
||||
{% assign relBase = relBase | append: ".." %}
|
||||
{% else %}
|
||||
{% assign relBase = relBase | append: "../" %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if relBase == '' %}
|
||||
{% assign relBase = '.' %}
|
||||
{% endif %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue