Commit 2ff82ffd authored by Edu Garcia's avatar Edu Garcia
Browse files

Make index.html use baseurl and append in hrefs

parent ca11966c
...@@ -2,6 +2,7 @@ title: Long Haul ...@@ -2,6 +2,7 @@ title: Long Haul
description: Long Form Jekyll theme built with SASS / COMPASS / SUSY description: Long Form Jekyll theme built with SASS / COMPASS / SUSY
url: http://brianmaierjr.github.com/long-haul url: http://brianmaierjr.github.com/long-haul
baseurl: ""
paginate_path: "blog/page:num/" paginate_path: "blog/page:num/"
permalink: blog/:title/ permalink: blog/:title/
......
...@@ -2,24 +2,24 @@ ...@@ -2,24 +2,24 @@
layout: default layout: default
--- ---
<div id="home"> <div class="home" id="home">
<h1 class="pageTitle">Recent Posts</h1> <h1 class="pageTitle">Recent Posts</h1>
<ul class="posts noList"> <ul class="posts noList">
{% for post in paginator.posts %} {% for post in paginator.posts %}
<li> <li>
<span class="date">{{ post.date | date: '%B %d, %Y' }}</span> <span class="date">{{ post.date | date: '%B %d, %Y' }}</span>
<h3><a href="{{ site.url }}{{ post.url }}">{{ post.title }}</a></h3> <h3><a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h3>
<p class="description">{% if post.description %}{{ post.description | strip_html | strip_newlines | truncate: 250 }}{% else %}{{ post.content | strip_html | strip_newlines | truncate: 250 }}{% endif %}</p> <p class="description">{% if post.description %}{{ post.description | strip_html | strip_newlines | truncate: 250 }}{% else %}{{ post.content | strip_html | strip_newlines | truncate: 250 }}{% endif %}</p>
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
<!-- Pagination links --> <!-- Pagination links -->
<div class="pagination"> <div class="pagination">
{% if paginator.previous_page %} {% if paginator.previous_page %}
<a href="{{ site.url }}{{ paginator.previous_page_path }}" class="previous button__outline">Newer Posts</a> <a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="previous button__outline">Newer Posts</a>
{% endif %} {% endif %}
{% if paginator.next_page %} {% if paginator.next_page %}
<a href="{{ site.url }}{{ paginator.next_page_path }}" class="next button__outline">Older Posts</a> <a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="next button__outline">Older Posts</a>
{% endif %} {% endif %}
</div> </div>
</div> </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