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

Make index.html use baseurl and append in hrefs

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