Skip to content

Commit 6d3baf4

Browse files
authored
Merge pull request #275 from joariasl/hotfix/link-reerences-using-filters
Fix link references using Jekyll filters instead of concatenation
2 parents cbf6b4a + e278a20 commit 6d3baf4

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

_includes/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
notice_banner_reject_button_hide: false,
6262
preferences_center_close_button_hide: false,
6363
page_refresh_confirmation_buttons: false,
64-
website_name: "{{ site.url }}",
64+
website_name: "{{ '/' | absolute_url }}",
6565
});
6666
});
6767
</script>

_includes/navigation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="container">
55
<a
66
class="navbar-brand page-scroll"
7-
href="{% if page.section-type == 'index' %}#page-top{% else %}{{site.url}}{% endif %}"
7+
href="{% if page.section-type == 'index' %}#page-top{% else %}{{ '/' | absolute_url }}{% endif %}"
88
aria-controls="navbarNav"
99
aria-label="Collapse navigation"
1010
>

_layouts/error.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ <h2>UH OH! You're lost</h2>
682682
</svg>
683683
<p>
684684
The page you are looking for does not exist. How you got here is a
685-
mystery. But you can click <a href="{{ site.url | absolute_url }}">here</a>
685+
mystery. But you can click <a href="{{ '/' | absolute_url }}">here</a>
686686
to go back to the homepage.
687687
</p>
688688
</div>

_layouts/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ <h6 class="text-center">
4444
<div class="col-4 col-sm-3 col-md-2">
4545
<img
4646
class="img-fluid"
47-
src="{{site.url}}{{ site.author_blurb_image }}"
47+
src="{{ site.author_blurb_image | absolute_url }}"
4848
alt="Me"
4949
/>
5050
</div>

feed.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ layout: null
66
<channel>
77
<title>{{ site.title | xml_escape }}</title>
88
<description>{% if site.description %}{{ site.description | xml_escape }}{% endif %}</description>
9-
<link>{{site.url}}</link>
9+
<link>{{ "/" | absolute_url }}</link>
1010
<atom:link href="{{ 'feed.xml' | absolute_url }}" rel="self" type="application/rss+xml" />
1111
{% for post in site.posts limit:10 %}
1212
<item>

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@
3535
"type": "image/png"
3636
}
3737
],
38-
"start_url": "{{site.url}}",
38+
"start_url": "{{ '/' | absolute_url }}",
3939
"display": "standalone"
4040
}

sitemap.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ layout: null
3535
{% endfor %}
3636
{% for tag in site.tags %}
3737
<url>
38-
<loc>{{ site.url }}{{ site.baseurl }}/tags/{{ tag[0] }}.html</loc>
38+
<loc>{{ "/tags/" | absolute_url }}{{ tag[0] }}.html</loc>
3939
<changefreq>weekly</changefreq>
4040
<priority>0.8</priority>
4141
</url>

0 commit comments

Comments
 (0)