Skip to content

Commit

Permalink
use slash instead of empty string for absolute url, try to fix links …
Browse files Browse the repository at this point in the history
…in 'jekyll build'
  • Loading branch information
daattali committed Oct 25, 2023
1 parent 16af2d1 commit a206f70
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion _includes/footer-minimal.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

{% if site.url-pretty %}
  •  
<a href="{{ '' | absolute_url }}">{{ site.url-pretty }}</a>
<a href="{{ '/' | absolute_url }}">{{ site.url-pretty }}</a>
{% endif %}
</div>
</footer>
2 changes: 1 addition & 1 deletion _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{% if site.url-pretty %}
&nbsp;&bull;&nbsp;
<span class="author-site">
<a href="{% if site.url-canonical %}{{ site.url-canonical }}{% else %}{{ '' | absolute_url }}{% endif %}">{{ site.url-pretty }}</a>
<a href="{% if site.url-canonical %}{{ site.url-canonical }}{% else %}{{ '/' | absolute_url }}{% endif %}">{{ site.url-pretty }}</a>
</span>
{% endif %}

Expand Down
6 changes: 3 additions & 3 deletions _includes/nav.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<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 %}">

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

<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main-navbar" aria-controls="main-navbar" aria-expanded="false" aria-label="Toggle navigation">
Expand Down Expand Up @@ -50,7 +50,7 @@
{% if site.avatar and page.show-avatar != false %}
<div class="avatar-container">
<div class="avatar-img-border">
<a href="{{ '' | absolute_url }}">
<a href="{{ '/' | absolute_url }}">
<img alt="Navigation bar avatar" class="avatar-img" src="{{ site.avatar | relative_url }}" />
</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ layout: null
{% if site.rss-description %}
<description>{{ site.rss-description | xml_escape }}</description>
{% endif %}
<link>{{ '' | absolute_url }}</link>
<link>{{ '/' | absolute_url }}</link>
<atom:link href="{{ 'feed.xml' | absolute_url }}" rel="self" type="application/rss+xml" />
{% assign excerpt_length = site.excerpt_length | default: 50 %}
{% for post in site.posts limit:20 %}
Expand Down

0 comments on commit a206f70

Please sign in to comment.