summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Kuttler <git@kuttler.eu>2015-02-12 22:40:15 +0100
committerNicolas Kuttler <git@kuttler.eu>2015-02-12 22:46:36 +0100
commit8c28becbb86e6cdb910cbb12221067b08cf43923 (patch)
tree3c6dbd8aeb1dfbd00e409938c0715bcef1510e2f
parent76820ed6ae9a96e97c9cac54f8aec16bab694cfb (diff)
downloadirssi.github.io-8c28becbb86e6cdb910cbb12221067b08cf43923.zip
Use the base url setting everywhere
With this merged all one has to do to serve the project as a github project page is to set the baseurl value to /project-name in _config.yml See http://nkuttler.github.io/irssi.github.io/
-rw-r--r--_includes/head.html4
-rw-r--r--_includes/header.html8
-rw-r--r--_layouts/home.html2
-rw-r--r--articles/index.markdown2
4 files changed, 8 insertions, 8 deletions
diff --git a/_includes/head.html b/_includes/head.html
index b1c8ce5..a96a782 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -6,6 +6,6 @@
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
<meta name="description" content="{{ site.description }}">
- <link rel="stylesheet" href="/assets/css/bootstrap.min.css">
- <link rel="stylesheet" href="/assets/css/style.css">
+ <link rel="stylesheet" href="{{ site.baseurl }}/assets/css/bootstrap.min.css">
+ <link rel="stylesheet" href="{{ site.baseurl }}/assets/css/style.css">
</head>
diff --git a/_includes/header.html b/_includes/header.html
index e902722..1bc9d22 100644
--- a/_includes/header.html
+++ b/_includes/header.html
@@ -8,13 +8,13 @@
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">
- <img alt="Irssi Logo" class="navbar-irssi-logo" src="/assets/logo.png">
+ <img alt="Irssi Logo" class="navbar-irssi-logo" src="{{ site.baseurl }}/assets/logo.png">
{% comment %}{{ site.title }}{% endcomment %}
</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
- <li{% if page.url == "/index.html" %} class="active"{% endif %}><a href="/">News</a></li>
+ <li{% if page.url == "/index.html" %} class="active"{% endif %}><a href="{{ site.baseurl }}">News</a></li>
{% comment %}
Exclude the news feed and the paginated news pages.
{% endcomment %}
@@ -22,11 +22,11 @@
{% if node.title != "News" and node.title != "News Feed" %}
{% if page.url == node.url %}
<li class="active">
- <a href="{{ node.url }}" class="active">{{ node.title }}</a>
+ <a href="{{ site.baseurl }}{{ node.url }}" class="active">{{ node.title }}</a>
</li>
{% else %}
<li>
- <a href="{{ node.url }}">{{ node.title }}</a>
+ <a href="{{ site.baseurl }}{{ node.url }}">{{ node.title }}</a>
</li>
{% endif %}
{% endif %}
diff --git a/_layouts/home.html b/_layouts/home.html
index 81451b6..c325bfb 100644
--- a/_layouts/home.html
+++ b/_layouts/home.html
@@ -5,7 +5,7 @@ layout: default
<h1>News{% if paginator.page > 1 %} Archive{% endif %}</h1>
{% for post in paginator.posts %}
- <h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
+ <h2><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h2>
{% include postmeta.html node=post %}
{{ post.content | markdownify }}
{% endfor %}
diff --git a/articles/index.markdown b/articles/index.markdown
index 1f8c44f..a8fcfde 100644
--- a/articles/index.markdown
+++ b/articles/index.markdown
@@ -7,5 +7,5 @@ Articles
========
{% for article in site.articles %}
-- [{{ article.title }}]({{ article.url }})
+- [{{ article.title }}]({{ site.baseurl }}{{ article.url }})
{% endfor %}