Commit 6ba9b119 authored by Jamie Tanna's avatar Jamie Tanna

Remove `site.url` references where possible

We don't want to use `site.url` anywhere, especially as it's now been
configured as part of #160 to help with i.e. canonical URLs for SEO.

However, there are a number of places that actually already had the URLs
referenced, so these links would break local development, which means
they needed to be removed.
parent af149076
Pipeline #17970250 passed with stages
in 5 minutes and 32 seconds
<link href='https://fonts.googleapis.com/css?family=Inconsolata:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="{{ "/assets/css/vendor/normalize-css/normalize.css" | prepend: site.url }}">
<link rel="stylesheet" href="{{ "/assets/css/main.css" | prepend: site.url }}">
<link rel="stylesheet" href="{{ "/assets/css/gruvbox.css" | prepend: site.url }}">
<link rel="stylesheet" href="{{ "/assets/css/font-awesome.min.css" | prepend: site.url }}">
<link rel="stylesheet" href="/assets/css/vendor/normalize-css/normalize.css">
<link rel="stylesheet" href="/assets/css/main.css">
<link rel="stylesheet" href="/assets/css/gruvbox.css">
<link rel="stylesheet" href="/assets/css/font-awesome.min.css">
......@@ -3,10 +3,10 @@
<a href="/" class="logo">{{ site.title }}</a>
<ul class="menu">
<li class="menu__entry"><a href="{{ '/about' | prepend: site.url }}">About</a></li>
<li class="menu__entry"><a href="{{ '/posts/' | prepend: site.url }}">Blog</a></li>
<li class="menu__entry"><a href="{{ '/projects/' | prepend: site.url }}">Projects</a></li>
<li class="menu__entry"><a href="{{ '/talks/' | prepend: site.url }}">Talks</a></li>
<li class="menu__entry"><a href="/about">About</a></li>
<li class="menu__entry"><a href="/posts/">Blog</a></li>
<li class="menu__entry"><a href="/projects/">Projects</a></li>
<li class="menu__entry"><a href="/talks/">Talks</a></li>
</ul>
</div>
......
......@@ -11,7 +11,7 @@
<ul class="post-tags">
{% for tag in page.tags %}
{% capture tagLink %}
{{ site.url }}/tags/{{ tag }}/
/tags/{{ tag }}/
{% endcapture %}
<li>
<a href="{{ tagLink }}">
......@@ -29,7 +29,7 @@
<ul class="post-categories">
{% for category in page.categories %}
{% capture categoryLink %}
{{ site.url }}/categories/{{ category }}/
/categories/{{ category }}/
{% endcapture %}
<li>
<a href="{{ categoryLink }}">
......
......@@ -9,5 +9,5 @@
</section>
{% unless limit == 1000 %}
<p><a href="{{ '/posts/' | prepend:site.url }}">Read the rest of my posts</a></p>
<p><a href="/posts/">Read the rest of my posts</a></p>
{% endunless %}
......@@ -16,6 +16,6 @@
</section>
{% unless limit == 1000 %}
<p><a href="{{ '/projects/' | prepend:site.url }}">Read about other projects I've worked upon.</a></p>
<p><a href="/projects/">Read about other projects I've worked upon.</a></p>
{% endunless %}
</div>
......@@ -9,7 +9,7 @@
{% endcapture %}
<article>
{% if project.image == true and showImage == true %}
<a href="{{ project.url }}" class="image"><img src="{{ site.url | append: '/assets/img/projects/' | append: project.image}}" alt="{{ project.title }}" /></a>
<a href="{{ project.url }}" class="image"><img src="/assets/img/projects/{{project.image}}" alt="{{ project.title }}" /></a>
{% endif %}
<h2 class="major">{{ project.title }}</h2>
<caption>
......
......@@ -3,7 +3,7 @@ layout: page
---
{% for item in page.metadataList %}
{% capture childLink %}
{{ site.url }}/{{ page.metadataDir }}/{{ item[0] }}/
/{{ page.metadataDir }}/{{ item[0] }}/
{% endcapture %}
<h2 id="{{ item[0] | slugify }}">
<a href="{{ childLink }}">{{ item[0] | capitalize }}</a>
......@@ -13,7 +13,7 @@ layout: page
{% for post in pages_list reversed %}
{% if post.title != null %}
<li>
<a href="{{ site.url }}{{ post.url }}">{{ post.title }}
<a href="{{ post.url }}">{{ post.title }}
</a>
&nbsp;
<time datetime="{{ post.date | date_to_xmlschema }}" itemprop="datePublished">{{ post.date | date: "%B %d, %Y" }}</time>
......
......@@ -3,7 +3,7 @@ layout: page
---
{% for item in page.metadataList %}
{% capture childLink %}
{{ site.url }}/{{ page.techDir }}/{{ item[0] }}/
/{{ page.techDir }}/{{ item[0] }}/
{% endcapture %}
<h2 id="{{ item.slug }}">
<a href="{{ childLink }}">{{ item[0] }}</a>
......@@ -13,7 +13,7 @@ layout: page
{% for project in projects_list reversed %}
{% if project.title != null %}
<li>
<a href="{{ site.url }}{{ project.url }}">{{ project.title }}</a>: {{ project.description }}
<a href="{{ project.url }}">{{ project.title }}</a>: {{ project.description }}
</li>
{% endif %}
{% endfor %}
......@@ -32,7 +32,7 @@ layout: page
{% for project in page.uncategorised_projects %}
{% if project.title != null %}
<li>
<a href="{{ site.url }}{{ project.url }}">{{ project.title }}</a>: {{ project.description }}
<a href="{{ project.url }}">{{ project.title }}</a>: {{ project.description }}
</li>
{% endif %}
{% endfor %}
......
......@@ -7,7 +7,7 @@ categories: fosdem
tags: cloud opensource
---
> This article is developed from a talk by [Ed Schouten at FOSDEM 2017][cloudabi-fosdem]. This article piqued my interest due to [my dissertation]({{ site.url }}/projects/evaluating_sandboxing_systems_linux/) being on a very similar subject, and with the focus on the Cloud.
> This article is developed from a talk by [Ed Schouten at FOSDEM 2017][cloudabi-fosdem]. This article piqued my interest due to [my dissertation](/projects/evaluating_sandboxing_systems_linux/) being on a very similar subject, and with the focus on the Cloud.
## Project Rationale
......
......@@ -99,4 +99,4 @@ Another thing to remember is that the team running the event are going to be lim
- Why not check out [`workshopr`][workshopr]?
[inspirewit2017]: http://2017.inspirewit.com
[workshopr]: {{ site.url }}/projects/workshopr/
[workshopr]: /projects/workshopr/
......@@ -11,7 +11,7 @@ I very recently set up [GitLab's Review Apps][review-apps] for this site, meanin
For example, the [`example/review-apps`][review-apps-branch] branch is deployed under the `review/example/review-apps` environment to <http://example-review-apps.review.jvt.me/>:
![`example/review-apps` environment]({{ site.url }}/assets/img/gitlab-review-apps-capistrano/example-review-apps.png)
![`example/review-apps` environment](/assets/img/gitlab-review-apps-capistrano/example-review-apps.png)
This means that each branch I push to will spin up a new instance of my site under the `review.jvt.me` subdomain.
......
......@@ -3,6 +3,6 @@ layout: page
title: My Posts
---
<div>
<p>Some of the blog posts I've made over time can be found below. Alternatively, see my posts as in terms of <a href="{{ site.url }}/categories/">categories</a> or by <a href="{{ site.url }}/tags/">tags</a>.</p>
<p>Some of the blog posts I've made over time can be found below. Alternatively, see my posts as in terms of <a href="/categories/">categories</a> or by <a href="/tags/">tags</a>.</p>
{% include post/list.html %}
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment