Open thinhdanggroup opened 5 years ago
Hello,
Are you sure that your amendment works?
{{second_post.baseurl}}/{{ second_post.image }} does not work for me. I resolved with the following fix.
<img class="w-100" src="{% if second_post.image contains "://" %}{{ second_post.image }}{% else %}{{ second_post.image | absolute_url }}{% endif %}" alt="{{ second_post.title }}">
<img class="w-100" src="{% if second_post.image contains "://" %}{{ second_post.image }}{% else %}{{site.baseurl}}/{{ second_post.image }}{% endif %}" alt="{{ second_post.title }}">
Hello,
Current, I am using your theme on my website. But the second latest post has the wrong URL ( the post's image can not render like below picture ), it uses a
second_post.image | absolute_url
instead of{{second_post.baseurl}}/{{ second_post.image }}
. I think this is someone's mistake.