Made links relative to html root directory

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
Jim Martens 2017-12-27 22:35:35 +01:00
parent 441f6a20e7
commit 2c99829425
8 changed files with 9 additions and 9 deletions

View File

@ -6,7 +6,7 @@
<ul class="nav">
{% for item in site.data.footer-menu.items %}
<li class="nav-item{% if page.url == item.link %} active{% endif %}">
<a class="nav-link" href="{{ item.link }}">{{ item.title }}</a>
<a class="nav-link" href="{{ item.link | relative_url }}">{{ item.title }}</a>
</li>
{% endfor %}
</ul>

View File

@ -10,7 +10,7 @@
{% stylesheet fa-svg-with-js.css %}
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}"
href="{% link feed.xml %}">
href="{{ site.baseurl }}{% link feed.xml %}">
<script>
FontAwesomeConfig = { autoAddCss: false }

View File

@ -17,7 +17,7 @@
<ul class="navbar-nav mr-auto">
{% for item in site.data.header-menu.items %}
<li class="nav-item">
<a class="nav-link{% if item.link == page.url %} active{% endif %}" href="{{ item.link }}">
<a class="nav-link{% if item.link == page.url %} active{% endif %}" href="{{ item.link | relative_url }}">
{{ item.title }}
</a>
</li>
@ -49,7 +49,7 @@
{% for subitem in item.items %}
<li class="nav-item">
<a class="nav-link{% if subitem.link == page.url %} active{% endif %}"
href="{{ subitem.link }}">{{ subitem.title }}</a>
href="{{ subitem.link | relative_url }}">{{ subitem.title }}</a>
</li>
{% endfor %}
</ul>

View File

@ -6,7 +6,7 @@
<li><span class="font-weight-bold">Name:</span>&nbsp;{{ site.data.author.name }}</li>
<li><span class="font-weight-bold">Age:</span>&nbsp;{{ site.data.author.age }}</li>
<li><span class="font-weight-bold">Location:</span>&nbsp;{{ site.data.author.location }}</li>
<li><a href="{{ site.data.author.cv_link }}">Further information...</a></li>
<li><a href="{{ site.data.author.cv_link | relative_url }}">Further information...</a></li>
</ul>
</div>
</div>

View File

@ -1,7 +1,7 @@
<div class="card sidebar mb-3">
<div class="card-body">
<p class="card-text">
<a class="btn btn-primary" href="{{ site.data.author.cv_pdf }}">
<a class="btn btn-primary" href="{{ site.data.author.cv_pdf | relative_url }}">
<span class="far fa-file-pdf"></span>&nbsp;Download CV
</a>
</p>

View File

@ -16,7 +16,7 @@ layout: default
<li class="mb-4">
<span class="small text-muted">{{ post.date | date: "%b %-d, %Y" }}</span>
<p class="h4 post-title">
<a class="post-link" href="{{ post.url | absolute_url }}">{{ post.title }}</a>
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title }}</a>
</p>
</li>
{% endfor %}

View File

@ -8,7 +8,7 @@ layout: default
<li class="mb-4">
<span class="small text-muted">{{ post.date | date: "%b %-d, %Y" }}</span>
<p class="h4 post-title">
<a class="post-link" href="{{ post.url | absolute_url }}">{{ post.title }}</a>
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title }}</a>
</p>
</li>
{% endfor %}

View File

@ -61,7 +61,7 @@ layout: default
<li class="mb-4">
<span class="small text-muted">{{ post.date | date: "%b %-d, %Y" }}</span>
<p class="h4 post-title">
<a class="post-link" href="{{ post.url | absolute_url }}">{{ post.title }}</a>
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title }}</a>
</p>
</li>
{% endfor %}