Skip to content

Commit 3056049

Browse files
committed
Use relative_url intead of baseurl
1 parent bb92f08 commit 3056049

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

_includes/head.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
<meta name="author" content="{{ site.author }}">
1919
{% if site.fb_page %}<meta property="fb:pages" content="{{ site.fb_page_id }}" />{% endif %}
2020
{% if page.categories %}<meta name="keywords" content="{{ page.categories | join: ', ' }}">{% endif %}
21-
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
22-
<link rel="alternate" type="application/rss+xml" title="RSS Feed for {{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl }}" />
21+
<link rel="canonical" href="{{ page.url | absolute_url }}">
22+
<link rel="alternate" type="application/rss+xml" title="RSS Feed for {{ site.title }}" href="{{ "/feed.xml" | relative_url }}" />
2323

2424
<!-- Custom CSS -->
25-
<link rel="stylesheet" href="{{ "/css/pixyll.css" | prepend: site.baseurl }}?{{ site.time | date: "%Y%m%d%H%M" }}" type="text/css">
25+
<link rel="stylesheet" href="{{ "/css/pixyll.css" | relative_url }}?{{ site.time | date: "%Y%m%d%H%M" }}" type="text/css">
2626

2727
<!-- Fonts -->
2828
{% if site.extended_fonts %}

_includes/social_links.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{% if site.stackoverflow_id %}
1313
<a class="fa fa-stack-overflow" href="https://stackoverflow.com/users/{{ site.stackoverflow_id }}"></a>
1414
{% endif %}
15-
<a class="fa fa-rss" href="{{ "/feed.xml" | prepend: site.baseurl }}"></a>
15+
<a class="fa fa-rss" href="{{ "/feed.xml" | relative_url }}"></a>
1616
{% if site.twitter_username %}
1717
<a class="fa fa-twitter" href="https://twitter.com/{{ site.twitter_username }}"></a>
1818
{% endif %}

_layouts/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ <h1>{{ page.title }}</h1>
6262
<h3 class="related-post-title">{{ site.text.post.related_posts }}</h3>
6363
{% for post in site.related_posts %}
6464
<div class="post ml2">
65-
<a href="{{ post.url | prepend: site.baseurl }}" class="post-link">
65+
<a href="{{ post.url | relative_url }}" class="post-link">
6666
<h4 class="post-title">{{ post.title }}</h4>
6767
<p class="post-summary">{{ post.summary }}</p>
6868
</a>

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{% for post in paginator.posts %}
1010
<div class="post py3">
1111
<p class="post-meta">{{ post.date | date: site.date_format }}</p>
12-
<a href="{{ post.url | prepend: site.baseurl }}" class="post-link"><h3 class="h1 post-title">{{ post.title }}</h3></a>
12+
<a href="{{ post.url | relative_url }}" class="post-link"><h3 class="h1 post-title">{{ post.title }}</h3></a>
1313
<span class="post-summary">
1414
{% if post.summary %}
1515
{{ post.summary }}

0 commit comments

Comments
 (0)