Skip to content

Commit

Permalink
Made all links relative
Browse files Browse the repository at this point in the history
  • Loading branch information
Matija Čupić committed Aug 31, 2016
1 parent f5b30c8 commit 8ae3d47
Show file tree
Hide file tree
Showing 13 changed files with 107 additions and 107 deletions.
10 changes: 5 additions & 5 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% if page.imagefeature %}
<footer id="footer" class="blog-background overlay text-center align-middle animated from-top" style="background-image: url({{ site.url }}/images/{{ page.imagefeature }})">
<footer id="footer" class="blog-background overlay text-center align-middle animated from-top" style="background-image: url(/images/{{ page.imagefeature }})">
{% else %}
<footer id="footer" class="blog-background overlay text-center align-middle animated from-top" style="background-image: url({{ site.url }}/images/{{ site.default_bg }})">
<footer id="footer" class="blog-background overlay text-center align-middle animated from-top" style="background-image: url(/images/{{ site.default_bg }})">
{% endif %}

<div class="inner">
Expand Down Expand Up @@ -60,7 +60,7 @@
{% endif %}
</ul>
<div>
<a href="{{ site.url }}/about/">{{ site.author.name }}</a> &copy; {{ site.time | date: '%Y' }} &bull;
<a href="/about/">{{ site.author.name }}</a> &copy; {{ site.time | date: '%Y' }} &bull;
All rights reserved.
</div>
<ul class="menu-items">
Expand All @@ -69,11 +69,11 @@
{% if link.external %}
<a href="{{ link.url }}">{% if link.icon %}<i class="fa fa-{{ link.icon }}"></i> {% else %} {{ link.title }}{% endif %} </a>&nbsp;&bull;
{% else %}
<a href="{{ site.url }}{{ link.url }}">{% if link.icon %}<i class="fa fa-{{ link.icon }}"></i>{% else %}{{ link.title }}{% endif %}</a>&nbsp;&bull;
<a href="{{ link.url }}">{% if link.icon %}<i class="fa fa-{{ link.icon }}"></i>{% else %}{{ link.title }}{% endif %}</a>&nbsp;&bull;
{% endif %}
</li>
{% endfor %}
<li><a href="{{ site.url }}/feed.xml" title="Atom/RSS feed"><i class="fa fa-rss"></i> Feed</a></li>
<li><a href="/feed.xml" title="Atom/RSS feed"><i class="fa fa-rss"></i> Feed</a></li>
</ul>
</div>
</div>
Expand Down
18 changes: 9 additions & 9 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
crossorigin="anonymous">

<link rel="stylesheet" type="text/css" href="{{ site.url }}/assets/css/font-awesome.min.css" />
<link rel="stylesheet" type="text/css" href="/assets/css/font-awesome.min.css" />

<link rel="stylesheet" type="text/css" href="{{ site.url }}/assets/css/style.css" />
<link rel="stylesheet" type="text/css" href="{{ site.url }}/assets/css/syntax.css"/>
<link rel="stylesheet" type="text/css" href="/assets/css/style.css" />
<link rel="stylesheet" type="text/css" href="/assets/css/syntax.css"/>

{% if page.mathjax %}
<!--Load Mathjax-->
Expand Down Expand Up @@ -53,14 +53,14 @@

<!-- Icons -->
<!-- 16x16 -->
<link rel="shortcut icon" href="{{ site.url }}/images/favicons/favicon.ico">
<link rel="shortcut icon" href="/images/favicons/favicon.ico">
<!-- 32x32 -->
<link rel="shortcut icon" href="{{ site.url }}/images/favicons/favicon.png">
<link rel="shortcut icon" href="/images/favicons/favicon.png">
<!-- 57x57 (precomposed) for iPhone 3GS, pre-2011 iPod Touch and older Android devices -->
<link rel="apple-touch-icon-precomposed" href="{{ site.url }}/images/favicons/apple-touch-icon-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="/images/favicons/apple-touch-icon-precomposed.png">
<!-- 72x72 (precomposed) for 1st generation iPad, iPad 2 and iPad mini -->
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ site.url }}/images/favicons/apple-touch-icon-72x72-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/images/favicons/apple-touch-icon-72x72-precomposed.png">
<!-- 114x114 (precomposed) for iPhone 4, 4S, 5 and post-2011 iPod Touch -->
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ site.url }}/images/favicons/apple-touch-icon-114x114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/images/favicons/apple-touch-icon-114x114-precomposed.png">
<!-- 144x144 (precomposed) for iPad 3rd and 4th generation -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ site.url }}/images/favicons/apple-touch-icon-144x144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/images/favicons/apple-touch-icon-144x144-precomposed.png">
16 changes: 8 additions & 8 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@ <h2>MENU</h2>
<ul> {% for link in site.links %}
<li>{% if link.external %}
<a href="{{ link.url }}">{{ link.title }}</a> {% else %}
<a href="{{ site.url }}{{ link.url }}">{{ link.title }}</a> {% endif %} </li>
<a href="{{ link.url }}">{{ link.title }}</a> {% endif %} </li>
{% endfor %}
<li><a href="{{ site.url }}/feed.xml" title="Atom/RSS feed"><i class="fa fa-rss"></i> Feed</a></li>
<li><a href="/feed.xml" title="Atom/RSS feed"><i class="fa fa-rss"></i> Feed</a></li>
</ul>
</nav>
</aside>

{% if page.imagefeature %}
<header id="masthead" class="blog-background overlay align-center align-middle animated from-bottom" style="background-image: url({{ site.url }}/images/{{ page.imagefeature }})"
<header id="masthead" class="blog-background overlay align-center align-middle animated from-bottom" style="background-image: url(/images/{{ page.imagefeature }})"
itemscope itemtype="http://schema.org/Organization">
{% if page.imagecredit %}
<span class="image-credit">Photo Credit: <a href="{{ page.imagecreditlink }}" target="_blank"> {{ page.imagecredit }}</a></span>
{% endif %}
{% else %}
<header id="masthead" class="blog-background overlay align-center align-middle animated from-bottom" style="background-image: url({{ site.url }}/images/{{ site.default_bg }})"
<header id="masthead" class="blog-background overlay align-center align-middle animated from-bottom" style="background-image: url(/images/{{ site.default_bg }})"
itemscope itemtype="http://schema.org/Organization">
{% endif %}

Expand All @@ -49,8 +49,8 @@ <h2>MENU</h2>
{% if page.headline %}
<div class="inner">
<div class="container">
<a class="brand light" href="{{ site.url }}/" itemprop="url">
{% if site.logo %}<img itemprop="logo" src="{{ site.url }}/images/{{ site.logo }}" alt="{{ site.title }} Logo" />{% endif %}
<a class="brand light" href="/" itemprop="url">
{% if site.logo %}<img itemprop="logo" src="/images/{{ site.logo }}" alt="{{ site.title }} Logo" />{% endif %}
<h1 class="blog-title light" itemprop="name">
{{ site.title }}
</h1>
Expand All @@ -64,8 +64,8 @@ <h2 class="blog-description light bordered bordered-top" itemprop="description">
{% else %}
<div class="inner">
<div class="container">
<a class="brand" href="{{ site.url }}/" itemprop="url">
{% if site.logo %}<img itemprop="logo" src="{{ site.url }}/images/{{ site.logo }}" alt="{{ site.title }} Logo" />{% endif %}
<a class="brand" href="/" itemprop="url">
{% if site.logo %}<img itemprop="logo" src="/images/{{ site.logo }}" alt="{{ site.title }} Logo" />{% endif %}
<h1 class="blog-title light" itemprop="name">
{{ site.title }}
</h1>
Expand Down
14 changes: 7 additions & 7 deletions _includes/scripts.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ="
crossorigin="anonymous"></script>
<script>window.jQuery || document.write('<script src="{{ site.url }}/assets/js/vendor/jquery-1.12.4.min.js"><\/script>')</script>
<script>window.jQuery || document.write('<script src="/assets/js/vendor/jquery-1.12.4.min.js"><\/script>')</script>

<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
crossorigin="anonymous"></script>

<script type="text/javascript" src="{{ site.url }}/assets/js/plugins/jekyll-search.min.js"></script>
<script type="text/javascript" src="{{ site.url }}/assets/js/plugins/jquery.fitvids.js"></script>
<script type="text/javascript" src="{{ site.url }}/assets/js/plugins/jquery.waypoints.min.js"></script>
<script type="text/javascript" src="{{ site.url }}/assets/js/plugins/jquery.magnific-popup.min.js"></script>
<script type="text/javascript" src="{{ site.url }}/assets/js/main.js"></script>
<script type="text/javascript" src="{{ site.url }}/assets/js/script.js"></script>
<script type="text/javascript" src="/assets/js/plugins/jekyll-search.min.js"></script>
<script type="text/javascript" src="/assets/js/plugins/jquery.fitvids.js"></script>
<script type="text/javascript" src="/assets/js/plugins/jquery.waypoints.min.js"></script>
<script type="text/javascript" src="/assets/js/plugins/jquery.magnific-popup.min.js"></script>
<script type="text/javascript" src="/assets/js/main.js"></script>
<script type="text/javascript" src="/assets/js/script.js"></script>
<script type='text/javascript'>$(document).ready(function(){$(".time").text(function(a,b){return Math.round(parseFloat(b))})});</script>

<script type="text/javascript">
Expand Down
6 changes: 3 additions & 3 deletions _includes/share.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
</p>
<ul class="social-mini">
<li>
<a href="https://twitter.com/intent/tweet?text={{ page.title | cgi_escape }}%20{{ site.url }}{{ page.url }}%20via%20&#64;{{ site.author.twitter }}"
<a href="https://twitter.com/intent/tweet?text={{ page.title | cgi_escape }}%20{{ page.url }}%20via%20&#64;{{ site.author.twitter }}"
onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;" data-toggle="tooltip"
title="Share on Twitter" itemprop="Twitter">
<i class="fa fa-twitter"></i>
</a>
</li>
<li>
<a href="https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ page.url }}" onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;"
<a href="https://www.facebook.com/sharer/sharer.php?u={{ page.url }}" onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;"
data-toggle="tooltip" title="Share on Facebook" itemprop="Facebook">
<i class="fa fa-facebook"></i>
</a>
</li>
<li>
<a href="https://plus.google.com/share?url={{ site.url }}{{ page.url }}" onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;"
<a href="https://plus.google.com/share?url={{ page.url }}" onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;"
data-toggle="tooltip" title="Share on Google plus" itemprop="GooglePlus">
<i class="fa fa-google-plus"></i>
</a>
Expand Down
2 changes: 1 addition & 1 deletion _includes/signoff.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="post-author text-center">
<img src="{{site.url}}/images/{{ site.author.picture }}" alt="{{ site.author.name }}'s photo" itemprop="image" class="post-avatar img-circle img-responsive" />
<h4 class="bordered-bottom vcard author" itemprop="author" itemscope itemtype="http://schema.org/Person">
By <span itemprop="name" class="fn"><a href="{{ site.url }}/about" title="About {{ site.author.name }}" itemprop="url">{{ site.author.name }}</a></span>
By <span itemprop="name" class="fn"><a href="/about" title="About {{ site.author.name }}" itemprop="url">{{ site.author.name }}</a></span>
</h4>
<p>{{ site.author.description }}</p>
</div>
16 changes: 8 additions & 8 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@ <h2>MENU</h2> <hr>
{% if link.external %}
<a href="{{ link.url }}">{{ link.title }}</a>
{% else %}
<a href="{{ site.url }}{{ link.url }}">{{ link.title }}</a>
<a href="{{ link.url }}">{{ link.title }}</a>
{% endif %}
</li>
{% endfor %}
<li><a href="{{ site.url }}/feed.xml" title="Atom/RSS feed"><i class="fa fa-rss"></i> Feed</a></li>
<li><a href="/feed.xml" title="Atom/RSS feed"><i class="fa fa-rss"></i> Feed</a></li>
</ul>
</nav>
</aside>

{% if page.imagefeature %}
<header id="masthead" class="blog-background overlay align-center align-middle animated from-bottom" style="background-image: url({{ site.url }}/images/{{ page.imagefeature }})" itemscope itemtype="http://schema.org/Organization">
<header id="masthead" class="blog-background overlay align-center align-middle animated from-bottom" style="background-image: url(/images/{{ page.imagefeature }})" itemscope itemtype="http://schema.org/Organization">
{% else %}
<header id="masthead" class="blog-background overlay align-center align-middle animated from-bottom" style="background-image: url({{ site.url }}/images/{{ site.default_bg }})" itemscope itemtype="http://schema.org/Organization">
<header id="masthead" class="blog-background overlay align-center align-middle animated from-bottom" style="background-image: url(/images/{{ site.default_bg }})" itemscope itemtype="http://schema.org/Organization">
{% endif %}

{% if site.search %}
Expand All @@ -55,8 +55,8 @@ <h2>MENU</h2> <hr>
{% if site.description %}
<div class="inner">
<div class="container">
<a class="brand light" href="{{ site.url }}" itemprop="url">
{% if site.logo %} <img itemprop="logo" src="{{ site.url }}/images/{{ site.logo }}" alt="{{ site.title }} Logo" /> {% endif %}
<a class="brand light" href="" itemprop="url">
{% if site.logo %} <img itemprop="logo" src="/images/{{ site.logo }}" alt="{{ site.title }} Logo" /> {% endif %}
<h1 class="blog-title light" itemprop="name">
{{ site.title }}
</h1>
Expand All @@ -69,8 +69,8 @@ <h2 class="blog-description light bordered bordered-top" itemprop="description">
{% else %}
<div class="inner">
<div class="container">
<a class="brand" href="{{ site.url }}" itemprop="url">
<img itemprop="logo" src="{{ site.url }}/images/{{ site.logo }}" alt="{{ site.title }} Logo" />
<a class="brand" href="" itemprop="url">
<img itemprop="logo" src="/images/{{ site.logo }}" alt="{{ site.title }} Logo" />
<h1 class="blog-title light" itemprop="name">
{{ site.title }}
</h1>
Expand Down
4 changes: 2 additions & 2 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ <h1 class="post-title text-center hyper lighter bordered-bottom entry-title" ite
in <span class="post-tags">

{% for tag in page.categories %}
<a href="{{ site.url }}/categories/index.html#{{ page.categories | cgi_encode }}" data-toggle="tooltip" title="Other posts from the {{ tag | capitalize }} category" rel="tag">{{ tag | capitalize }}</a>
<a href="/categories/index.html#{{ page.categories | cgi_encode }}" data-toggle="tooltip" title="Other posts from the {{ tag | capitalize }} category" rel="tag">{{ tag | capitalize }}</a>
{% unless forloop.last %}
&nbsp;&bull;&nbsp;
{% endunless %}
Expand Down Expand Up @@ -135,7 +135,7 @@ <h1 class="post-title text-center hyper lighter bordered-bottom entry-title" ite
<i class="fa fa-tags"></i>&nbsp;
Tagged with
{% for tag in page.tags %}
<a href="{{ site.url }}/tags/index.html#{{ tag | cgi_encode }}" data-toggle="tooltip" title="Posts tagged with {{ tag }}" rel="tag">{{ tag }}</a>
<a href="/tags/index.html#{{ tag | cgi_encode }}" data-toggle="tooltip" title="Posts tagged with {{ tag }}" rel="tag">{{ tag }}</a>

{% unless forloop.last %}
&nbsp;&bull;&nbsp;
Expand Down
4 changes: 2 additions & 2 deletions _pages/404.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: "Page not found. Your pixels are in another canvas."
---

<figure>
<img src="{{ site.url }}/images/404.jpg" alt="{{ page.title }} at {{ site.title }}">
<img src="/images/404.jpg" alt="{{ page.title }} at {{ site.title }}">
</figure>

<div class="text-center">
Expand All @@ -14,5 +14,5 @@ description: "Page not found. Your pixels are in another canvas."
</div>

<figure>
<img src="{{ site.url }}/images/bg-arrow.png" alt="down-arrow">
<img src="/images/bg-arrow.png" alt="down-arrow">
</figure>
2 changes: 1 addition & 1 deletion _pages/categories.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h2 id="{{ tag[0] }}" style="color: #c91b26">{{ tag[0] | capitalize }}</h2>
{% if post.title != null %}
{% if group == null or group == post.group %}
<li>
<a href="{{ site.url }}{{ post.url }}">
<a href="{{ post.url }}">
{{ post.title }}<span class="entry-date"><time datetime="{{ post.date | date_to_xmlschema }}" itemprop="datePublished">{{ post.date | date: "%B %d, %Y" }}</time></span>
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion _pages/featured.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<li>
<article>
<i class="fa fa-star-half-empty"></i>
<a href="{{ site.url }}{{ post.url }}">
<a href="{{ post.url }}">
{{ post.title }} <span class="entry-date"><time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%B %d, %Y" }}</time></span>
</a>
</article>
Expand Down
2 changes: 1 addition & 1 deletion _pages/tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ <h2 id="{{ tag[0] }}" style="color: #c91b26">{{ tag[0] }}</h2>
{% if post.title != null %}
{% if group == null or group == post.group %}
<li>
<a href="{{ site.url }}{{ post.url }}">
<a href="{{ post.url }}">
{{ post.title }}<span class="entry-date"><time datetime="{{ post.date | date_to_xmlschema }}" itemprop="datePublished">{{ post.date | date: "%B %d, %Y" }}</time>
</a>
</li>
Expand Down
Loading

0 comments on commit 8ae3d47

Please sign in to comment.