Skip to content

Commit a206f70

Browse files
committed
use slash instead of empty string for absolute url, try to fix links in 'jekyll build'
1 parent 16af2d1 commit a206f70

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎_includes/footer-minimal.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
{% if site.url-pretty %}
1414
  •  
15-
<a href="{{ '' | absolute_url }}">{{ site.url-pretty }}</a>
15+
<a href="{{ '/' | absolute_url }}">{{ site.url-pretty }}</a>
1616
{% endif %}
1717
</div>
1818
</footer>

‎_includes/footer.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
{% if site.url-pretty %}
2121
&nbsp;&bull;&nbsp;
2222
<span class="author-site">
23-
<a href="{% if site.url-canonical %}{{ site.url-canonical }}{% else %}{{ '' | absolute_url }}{% endif %}">{{ site.url-pretty }}</a>
23+
<a href="{% if site.url-canonical %}{{ site.url-canonical }}{% else %}{{ '/' | absolute_url }}{% endif %}">{{ site.url-pretty }}</a>
2424
</span>
2525
{% endif %}
2626

‎_includes/nav.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<nav class="navbar navbar-expand-xl navbar-light fixed-top navbar-custom {% if page.nav-short %}top-nav-short-permanent{% else %}top-nav-regular{% endif %}">
22

33
{%- if site.title-img -%}
4-
<a class="navbar-brand navbar-brand-logo" href="{{ '' | absolute_url }}"><img alt="{{ site.title }} Logo" src="{{ site.title-img | relative_url}}"/></a>
4+
<a class="navbar-brand navbar-brand-logo" href="{{ '/' | absolute_url }}"><img alt="{{ site.title }} Logo" src="{{ site.title-img | relative_url}}"/></a>
55
{%- elsif site.title -%}
6-
<a class="navbar-brand" href="{{ '' | absolute_url }}">{{ site.title }}</a>
6+
<a class="navbar-brand" href="{{ '/' | absolute_url }}">{{ site.title }}</a>
77
{%- endif -%}
88

99
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main-navbar" aria-controls="main-navbar" aria-expanded="false" aria-label="Toggle navigation">
@@ -50,7 +50,7 @@
5050
{% if site.avatar and page.show-avatar != false %}
5151
<div class="avatar-container">
5252
<div class="avatar-img-border">
53-
<a href="{{ '' | absolute_url }}">
53+
<a href="{{ '/' | absolute_url }}">
5454
<img alt="Navigation bar avatar" class="avatar-img" src="{{ site.avatar | relative_url }}" />
5555
</a>
5656
</div>

‎feed.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ layout: null
1010
{% if site.rss-description %}
1111
<description>{{ site.rss-description | xml_escape }}</description>
1212
{% endif %}
13-
<link>{{ '' | absolute_url }}</link>
13+
<link>{{ '/' | absolute_url }}</link>
1414
<atom:link href="{{ 'feed.xml' | absolute_url }}" rel="self" type="application/rss+xml" />
1515
{% assign excerpt_length = site.excerpt_length | default: 50 %}
1616
{% for post in site.posts limit:20 %}

0 commit comments

Comments
 (0)