Skip to content

Commit

Permalink
Update broken links
Browse files Browse the repository at this point in the history
  • Loading branch information
Saverio976 committed Nov 18, 2024
1 parent 6547389 commit 2194b3e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion _includes/navigation.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<nav>
{% for item in site.data.navigation %}
<a href="{{ item.link }}"{% if page.url == item.link %} class="current"{% endif %}>{{ item.name }}</a>
<a href="{{ item.link | relative_url }}"{% if page.url == item.link %} class="current"{% endif %}>{{ item.name }}</a>
{% endfor %}
</nav>
2 changes: 1 addition & 1 deletion _layouts/author.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ <h2>Posts</h2>
<ul>
{% assign filtered_posts = site.posts | where: 'author', page.short_name %}
{% for post in filtered_posts %}
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
<li><a href="{{ post.url | relative_url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
2 changes: 1 addition & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h1>{{ page.title }}</h1>
{{ page.date | date_to_string }}
{% assign author = site.authors | where: 'short_name', page.author | first %}
{% if author %}
- <a href="{{ author.url }}">{{ author.name }}</a>
- <a href="{{ author.url | relative_url }}">{{ author.name }}</a>
{% endif %}
</p>

Expand Down
2 changes: 1 addition & 1 deletion authors.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h1>Authors</h1>
<ul>
{% for author in site.authors %}
<li>
<h2><a href="{{ author.url }}">{{ author.name }}</a></h2>
<h2><a href="{{ author.url | relative_url }}">{{ author.name }}</a></h2>
<p>{{ author.content | markdownify }}</p>
</li>
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h1>Latest Posts</h1>
<ul>
{% for post in site.posts %}
<li>
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
<h2><a href="{{ post.url | relative_url }}">{{ post.title }}</a></h2>
{{ post.excerpt }}
</li>
{% endfor %}
Expand Down

0 comments on commit 2194b3e

Please sign in to comment.