Skip to content

Commit 0afc9d1

Browse files
Ben Walkerjaedan
Ben Walker
authored andcommitted
Generate absolute URLs for all links.
Signed-off-by: Ben Walker <[email protected]>
1 parent f30d547 commit 0afc9d1

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
url: "https://spdk.github.io"
2-
baseurl: ""
2+
baseurl: "http://www.spdk.io"
33
title: Storage Performance Development Kit
44
55
author: Benjamin Walker

_includes/blog.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
<hr class="section-heading-spacer">
1212
<div class="clearfix"></div>
1313
<h2 class="section-heading">{{ post.title }}</h2>
14-
<div class="lead">{{ post.excerpt }} <a class="post-link" href="{{ post.url }}">Continue...</a></div>
14+
<div class="lead">{{ post.excerpt }} <a class="post-link" href="{{ site.baseurl }}{{ post.url }}">Continue...</a></div>
1515
</div>
1616
<div class="col-lg-5 col-lg-offset-2 col-sm-6">
17-
<img class="img-responsive" src="img/blog/{{ post.img }}" alt="">
17+
<img class="img-responsive" src="{{ site.baseurl }}/img/blog/{{ post.img }}" alt="">
1818
</div>
1919
</div>
2020

@@ -32,10 +32,10 @@ <h2 class="section-heading">{{ post.title }}</h2>
3232
<hr class="section-heading-spacer">
3333
<div class="clearfix"></div>
3434
<h2 class="section-heading">{{ post.title }}</h2>
35-
<div class="lead">{{ post.excerpt }} <a class="post-link" href="{{ post.url }}">Continue...</a></div>
35+
<div class="lead">{{ post.excerpt }} <a class="post-link" href="{{ site.baseurl }}{{ post.url }}">Continue...</a></div>
3636
</div>
3737
<div class="col-lg-5 col-sm-pull-6 col-sm-6">
38-
<img class="img-responsive" src="img/blog/{{ post.img }}" alt="">
38+
<img class="img-responsive" src="{{ site.baseurl }}/img/blog/{{ post.img }}" alt="">
3939
</div>
4040
</div>
4141

_includes/community.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h2>Join Our Community:</h2>
1414
{% if box.ico == null %}
1515
<i class="fa fa-{{ box.title }} fa-fw"></i>
1616
{% else %}
17-
<img class="fa fa-fw" src="/{{ box.ico }}"></img>
17+
<img class="fa fa-fw" src="{{ site.baseurl }}/{{ box.ico }}"></img>
1818
{% endif %}
1919
<span class="box-name">{{ box.title }}</span>
2020
</a>

_includes/head.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
1010

11-
<link href="/css/bootstrap.min.css" rel="stylesheet">
12-
<link href="/css/spdk.css" rel="stylesheet">
11+
<link href="{{ site.baseurl }}/css/bootstrap.min.css" rel="stylesheet">
12+
<link href="{{ site.baseurl }}/css/spdk.css" rel="stylesheet">
1313
<link href='https://fonts.googleapis.com/css?family=Roboto:400,900' rel='stylesheet' type='text/css'>
1414

1515
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->

_includes/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ <h3>{{ page.subTitle }}</h3>
1111
{% for box in site.boxes %}
1212
<li>
1313
<a href="{{ box.url }}" class="btn btn-default btn-lg">
14-
<img class="box-ico" src="/{{ box.ico }}"></img>
14+
<img class="box-ico" src="{{ site.baseurl }}/{{ box.ico }}"></img>
1515
<span class="box-name">{{ box.title }}</span>
1616
</a>
1717
</li>

0 commit comments

Comments
 (0)