Skip to content

Commit

Permalink
Fix URLs making them relative
Browse files Browse the repository at this point in the history
  • Loading branch information
ale-depi committed Sep 8, 2024
1 parent fbfa646 commit 7f92e2f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion _includes/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<ul class="nav" id="navMenu">
{% for entry in site.menu %}
<li>
<a {% if page.url == entry.url %}class="current"{% endif %} href="{{ entry.url }}" title="{{ entry.title }}">
<a {% if page.url == entry.url %}class="current"{% endif %} href="{{ entry.url | relative_url }}" title="{{ entry.title }}">
{{ entry.name }}
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion _includes/taxonomy/categories.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<span class="separator">
{% for category in page.categories %}
<a class="category" href="{{ "/categories/" | append: category }}">{{ category }}</a>
<a class="category" href="{{ "/categories/" | append: category | relative_url }}">{{ category }}</a>
{% endfor %}
</span>
2 changes: 1 addition & 1 deletion _includes/taxonomy/tags.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<span class="separator">
{% for tag in page.tags %}
<a class="tag" href="{{ "/tags/" | append: tag }}">{{ tag }}</a>
<a class="tag" href="{{ "/tags/" | append: tag | relative_url }}">{{ tag }}</a>
{% endfor %}
</span>
2 changes: 1 addition & 1 deletion _layouts/category.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<ul class="listing">
<div class="listing-item">
<div class="listing-post">
<a href="{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a>
<a href="{{ post.url | relative_url }}" title="{{ post.title }}">{{ post.title }}</a>
<div class="post-time"><span class="date">{{ post.published | date: "%b %d" }}</span></div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion _layouts/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<ul class="listing">
<div class="listing-item">
<div class="listing-post">
<a href="{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a>
<a href="{{ post.url | relative_url }}" title="{{ post.title }}">{{ post.title }}</a>
<div class="post-time"><span class="date">{{ post.published | date: "%b %d" }}</span></div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion _layouts/tag.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<ul class="listing">
<div class="listing-item">
<div class="listing-post">
<a href="{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a>
<a href="{{ post.url | relative_url }}" title="{{ post.title }}">{{ post.title }}</a>
<div class="post-time"><span class="date">{{ post.published | date: "%b %d" }}</span></div>
</div>
</div>
Expand Down

0 comments on commit 7f92e2f

Please sign in to comment.