_includes/blog/post_sidebar.html in jumbo-jekyll-theme-6.0.0.5 vs _includes/blog/post_sidebar.html in jumbo-jekyll-theme-6.0.1.0
- old
+ new
@@ -8,14 +8,14 @@
{% assign timeframe = 604800 %}
{% assign post_in_seconds = post.date | date: "%s" | plus: 0 %}
{% assign recent_posts = "now" | date: "%s" | minus: timeframe %}
{% if post.image %}
- {% assign image_path = post.image | remove_first: "/assets/images/" %}
+ {% assign image_path = post.image %}
{% capture image_alt %}{{post.title}} image {% endcapture %}
{% else %}
- {% assign image_path = site.post_placeholder | remove_first: "/assets/images/" %}
+ {% assign image_path = site.post_placeholder %}
{% capture image_alt %}Blog post placeholder image {% endcapture %}
{% endif %}
<li class="media flex-column flex-sm-row">
{% picture post_thumb {{image_path}} --alt {{image_alt}} %}
<div class="media-body">
@@ -45,13 +45,13 @@
<h3>Other Posts</h3>
<ul class="list-unstyled">
{% assign posts = site.posts | sample:5 %}
{% for post in posts %}
{% if post.image %}
- {% assign image_path = post.image | remove_first: "/assets/images/" %}
+ {% assign image_path = post.image %}
{% capture image_alt %}{{post.title}} image {% endcapture %}
{% else %}
- {% assign image_path = site.post_placeholder | remove_first: "/assets/images/" %}
+ {% assign image_path = site.post_placeholder %}
{% capture image_alt %}Blog post placeholder image {% endcapture %}
{% endif %}
<li class="media flex-column flex-sm-row">
{% picture post_thumb {{image_path}} --alt {{image_alt}} %}
<div class="media-body">