Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Website
poul.org
Commits
2ff82ffd
Commit
2ff82ffd
authored
Mar 25, 2015
by
Edu Garcia
Browse files
Make index.html use baseurl and append in hrefs
parent
ca11966c
Changes
2
Hide whitespace changes
Inline
Side-by-side
_config.yml
View file @
2ff82ffd
...
...
@@ -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/
...
...
index.html
View file @
2ff82ffd
...
...
@@ -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.base
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=
"{{ 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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment