Jekyll: Jekyll Image Variable

Created on 7 Mar 2017  ·  3Comments  ·  Source: jekyll/jekyll

Hi everyone,

Now, I just tried to do this:

In the post:

title: THE_TITLE
img: http://i.imgur.com/kX22nWu.png
---

In the main layout:
<img src="{{ post.img }}" class="post-card-img" alt="{{ post.title }}" />

However, it is not working. =(


Can someone help me?
Thanks a lot.

frozen-due-to-age

Most helpful comment

i'd like to kindly redirect you to https://talk.jekyllrb.com/, where these kinds of questions are answered. the jekyll bug tracker is used for... well, bugs, not questions related to usage. judging as how this doesn't really seem like a bug, i believe it'd fit on the talk forum 😄

All 3 comments

there's not really enough information to justify a good answer here. are
you correctly looping through the posts? what does your mail layout look
like? what versions are you running?

you correctly looping through the posts?

Yes, I just quoted a part of the code.

I'm running in version _3.4.1_.

Thanks for answering. =)

i'd like to kindly redirect you to https://talk.jekyllrb.com/, where these kinds of questions are answered. the jekyll bug tracker is used for... well, bugs, not questions related to usage. judging as how this doesn't really seem like a bug, i believe it'd fit on the talk forum 😄

Was this page helpful?
0 / 5 - 0 ratings