Skip to content

Commit

Permalink
Use relative URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
knomepasi committed Oct 7, 2024
1 parent 1a1e235 commit 14f5484
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions _layouts/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ <h1>
{%- if post.release -%}
{{ post.release }}
{%- capture release_link -%}/release/{{ post.release }}{%- endcapture -%}
<li><a href="{{ release_link | relative_link }}">{{ post.release }}</a></li>
<li><a href="{{ release_link | relative_url }}">{{ post.release }}</a></li>
{%- endif -%}
{%- if post.serie -%}
{%- assign serie = site.series | first -%}
<li><a href="/serie/{{ post.serie }}">{{serie.title}}</a></li>
<li><a href="/serie/{{ post.serie }}">{{serie.title}}</a></li>{%- # TODO: relative_url -%}
{%- endif -%}
</ul>
{{ post.content }}
Expand All @@ -32,15 +32,15 @@ <h1>
<section class="pagination">
<div class="older">
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" class="button"><span>Older posts</span></a>
<a href="{{ paginator.next_page_path | relative_url }}" class="button"><span>Older posts</span></a>
{% endif %}
</div>
<span class="page_number">
{{ paginator.page }}/{{ paginator.total_pages }}
</span>
<div class="newer">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}" class="button"><span>Newer posts</span></a>
<a href="{{ paginator.previous_page_path | relative_url }}" class="button"><span>Newer posts</span></a>
{% endif %}
</div>
</section>
2 changes: 1 addition & 1 deletion _layouts/download.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h2>{{ page.title }}</h2>
{%- assign release_eol = release.date_eol | date: '%Y-%m-%d' -%}
{%- if release_eol > today -%}
<h3>{{ release.title }}</h3>
<p>For more information about the release, including release announcement, see the <a href="{{ release.url }}">release page</a>.</p>
<p>For more information about the release, including release announcement, see the <a href="{{ release.url | relative_url }}">release page</a>.</p>
{%- include download-links.html page=release -%}
{%- endif -%}
{%- endfor -%}
Expand Down
4 changes: 2 additions & 2 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<article>
<h1>
<a href="{{ page.url }}">
<a href="{{ page.url || relative_url }}">
{{ page.title }}
</a>
</h1>
Expand All @@ -16,7 +16,7 @@ <h1>
{%- endif -%}
{%- if page.serie -%}
{%- assign serie = site.series | first -%}
<li><a href="/serie/{{ page.serie }}">{{serie.title}}</a></li>
<li><a href="/serie/{{ page.serie }}">{{serie.title}}</a></li>{%- # TODO: relative_url -%}
{%- endif -%}
</ul>
{{ page.content }}
Expand Down
2 changes: 1 addition & 1 deletion _layouts/release.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h3>In the Press</h3>
<h3>Screenshots</h3>
<div class="media-list">
{%- for media in found -%}
<a href="{{ media }}"><img src="{{ media }}" /></a>
<a href="{{ media }}"><img src="{{ media }}" /></a>{%- # TODO: relative_url -%}
{%- endfor -%}
</div>
{%- endif -%}
Expand Down

0 comments on commit 14f5484

Please sign in to comment.