Permalink
Browse files

Use relative_url intead of baseurl

  • Loading branch information...
ashawley committed Dec 5, 2018
1 parent bb92f08 commit 30560491423e704f7f1f3502f1e9b5b47a7b5b31
Showing with 6 additions and 6 deletions.
  1. +3 −3 _includes/head.html
  2. +1 −1 _includes/social_links.html
  3. +1 −1 _layouts/post.html
  4. +1 −1 index.html
@@ -18,11 +18,11 @@
<meta name="author" content="{{ site.author }}">
{% if site.fb_page %}<meta property="fb:pages" content="{{ site.fb_page_id }}" />{% endif %}
{% if page.categories %}<meta name="keywords" content="{{ page.categories | join: ', ' }}">{% endif %}
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<link rel="alternate" type="application/rss+xml" title="RSS Feed for {{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl }}" />
<link rel="canonical" href="{{ page.url | absolute_url }}">
<link rel="alternate" type="application/rss+xml" title="RSS Feed for {{ site.title }}" href="{{ "/feed.xml" | relative_url }}" />

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

<!-- Fonts -->
{% if site.extended_fonts %}
@@ -12,7 +12,7 @@
{% if site.stackoverflow_id %}
<a class="fa fa-stack-overflow" href="https://stackoverflow.com/users/{{ site.stackoverflow_id }}"></a>
{% endif %}
<a class="fa fa-rss" href="{{ "/feed.xml" | prepend: site.baseurl }}"></a>
<a class="fa fa-rss" href="{{ "/feed.xml" | relative_url }}"></a>
{% if site.twitter_username %}
<a class="fa fa-twitter" href="https://twitter.com/{{ site.twitter_username }}"></a>
{% endif %}
@@ -62,7 +62,7 @@ <h1>{{ page.title }}</h1>
<h3 class="related-post-title">{{ site.text.post.related_posts }}</h3>
{% for post in site.related_posts %}
<div class="post ml2">
<a href="{{ post.url | prepend: site.baseurl }}" class="post-link">
<a href="{{ post.url | relative_url }}" class="post-link">
<h4 class="post-title">{{ post.title }}</h4>
<p class="post-summary">{{ post.summary }}</p>
</a>
@@ -9,7 +9,7 @@
{% for post in paginator.posts %}
<div class="post py3">
<p class="post-meta">{{ post.date | date: site.date_format }}</p>
<a href="{{ post.url | prepend: site.baseurl }}" class="post-link"><h3 class="h1 post-title">{{ post.title }}</h3></a>
<a href="{{ post.url | relative_url }}" class="post-link"><h3 class="h1 post-title">{{ post.title }}</h3></a>
<span class="post-summary">
{% if post.summary %}
{{ post.summary }}

0 comments on commit 3056049

Please sign in to comment.