Skip to content

Commit

Permalink
Fix for baseurl problem in posts_by_category
Browse files Browse the repository at this point in the history
Fixes issue codeasashu#5.
  • Loading branch information
GreatEmerald authored Aug 17, 2016
1 parent 3460407 commit 83ffa56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _layouts/posts_by_category.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h1 id="post-subtitle">Articles by category: <em class="text-muted">{{ page.cate
{% endif %}
{% endif %}
<div class="least-content">{{ post.date | date_to_string }}</div>
<h4 class="list-group-item-heading"><a href="{{ post.url }}">{{ post.title }}</a></h4>
<h4 class="list-group-item-heading"><a href="{{ site.baseurl }}/{{ post.url }}">{{ post.title }}</a></h4>
<p class="list-group-item-text">{{ post.content | strip_html | truncatewords: 20 }}</p>

</div>
Expand All @@ -53,4 +53,4 @@ <h4 class="list-group-item-heading"><a href="{{ post.url }}">{{ post.title }}</a
<p>There are no posts in this categories.</p>
{% endif %}
</div>
</div>
</div>

0 comments on commit 83ffa56

Please sign in to comment.