_includes/all-posts.html in panthera-jekyll-1.3.1 vs _includes/all-posts.html in panthera-jekyll-1.3.2
- old
+ new
@@ -3,18 +3,18 @@
{% for post in site.posts %}
<div class="pan-post-list__item">
<div class="pan-post-list--left">
<div class="pan-post-list--image">
{% if post.image %}
- <a href="{{ post.url | prepend: site.baseurl }}" style="background-image: url({{ '/' | prepend: site.baseurl | append: post.image }});"></a>
+ <a href="{{ post.url | relative_url }}" style="background-image: url({{ '/' | relative_url | append: post.image }});"></a>
{% else %}
- <a href="{{ post.url | prepend: site.baseurl }}"></a>
+ <a href="{{ post.url | relative_url }}"></a>
{% endif %}
</div>
</div>
<div class="pan-post-list--right">
<div class="pan-post-list--content">
- <h2><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h2>
+ <h2><a href="{{ post.url | relative_url }}">{{ post.title }}</a></h2>
<p class="info">
<span>{{ post.date | date: '%Y, %b %d' }}</span>
-
<span>{% capture words %}{{ post.content | number_of_words }}{% endcapture %}{% unless words contains "-" %}{{ words | plus: 250 | divided_by: 250 | append: " minute read" }}{% endunless %}</span>
</p>