Closed vivkay closed 8 years ago
Hi @thomasjbradley,
I'm having an issue connecting my image through my yml file. Everything is working except for the image). Any ideas what's wrong with this code?
HTML
<div class="grid center"> {% for post in site.data.blog %} <div class="unit unit-xs-1 unit-s-1 unit-m-1-2 unit-l-1-4 unit-xl-1-4"> <img src="{{site.baseurl}}/img/{{post.img}}" alt=""> <h4>{{post.title}}</h4> <h5>{{post.author}}</h5> <p>{{post.excerpt}}</p> </div> {% endfor %} </div>
YML (called blog.yml)
- title: Blog numero 1 author: Author name excerpt: hello this is content… img: blog-eco.jpg
Thank you!
oops I had it in the wrong file. how embarrassing. fixed it! :blush:
Hi @thomasjbradley,
I'm having an issue connecting my image through my yml file. Everything is working except for the image). Any ideas what's wrong with this code?
HTML
YML (called blog.yml)
Thank you!