Skip to content

Commit

Permalink
news: Add baseurl to allow links to work on gh-pages branches.
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Justen <[email protected]>
  • Loading branch information
jljusten committed Feb 3, 2015
1 parent bc70ba5 commit dc0a1c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ page.

<ul class="posts">
{% for post in site.posts limit:3 %}
<li><a href="{{ post.url }}">{{ post.title }}</a>, {{ post.date | date: "%B %-d, %Y" }}</li>
<li><a href="{{baseurl}}{{ post.url }}">{{ post.title }}</a>, {{ post.date | date: "%B %-d, %Y" }}</li>
{% endfor %}
<li>Read older <a href="news/">news here</a>, or <a href="news/feed.xml">subscribe with rss</a></li>
</ul>
2 changes: 1 addition & 1 deletion news/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ title: News
<a href="feed.xml">rss feed</a>

{% for post in site.posts %}
###[{{ post.date | date: "%B %-d, %Y" }}]({{ post.url }})
###[{{ post.date | date: "%B %-d, %Y" }}]({{baseurl}}{{ post.url }})
{{ post.content }}
{% endfor %}

0 comments on commit dc0a1c3

Please sign in to comment.