Made links relative to html root directory
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
parent
441f6a20e7
commit
2c99829425
|
@ -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>
|
||||
|
|
|
@ -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 }
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<li><span class="font-weight-bold">Name:</span> {{ site.data.author.name }}</li>
|
||||
<li><span class="font-weight-bold">Age:</span> {{ site.data.author.age }}</li>
|
||||
<li><span class="font-weight-bold">Location:</span> {{ 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>
|
|
@ -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> Download CV
|
||||
</a>
|
||||
</p>
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue