Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML Build a Blog with Jekyll and GitHub Pages Building and Customizing the Blog Creating and Accessing Custom Variables

Drew Hartsfield
Drew Hartsfield
2,212 Points

How to add multiple images to the post?

I just need to be shown an example where multiple images were successfully added to a post!

4 Answers

<img src="img/example.jpg" alt="example image"> <img src="img/example2.jpg" alt="second example image">

Tomas Pavlik
Tomas Pavlik
26,726 Points

Hi Drew, just add more img tags with different images, that's all.

tomas

Note that you don't have to close the tags. There's no </img> or anything.

Seth Kroger
Seth Kroger
56,413 Points

Are we talking about multiple images in the body of the post or in the template for all posts?

For the posts the Markdown syntax is to use an exclamation mark:

![alt text](/path/to/img.jpg "Title")
```with "alt text" being a description of the image for accessability. From http://daringfireball.net/projects/markdown/basics