From the course: Learning Static Site Building with Jekyll

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Add static content

Add static content

From the course: Learning Static Site Building with Jekyll

Start my 1-month free trial

Add static content

- Jekyll also makes it easy to deal with other types of content, like images and style sheets. Any other files or folders in this Jekyll project folder that aren't recognized by Jekyll, simply get copied verbatim into the output folder. So, for example, if I create a folder called images, and put some content in there. I'm going to copy a photo of a coffee mug that I found online. Copy that into images. And then on my about page, I'll use it here to make my about page more interesting. I'll use markdown syntax here, and exclamation and then a title for the image or an alt text coffee cup, and the path to the image which is going to be /images, the folder I just created, /coffee.jpeg. Now if my preview server is running, I can see that, or I can do bundle exec jekyll serve. And go refresh my browser and see the change. When you're working with content like images, sometimes this preview doesn't update right away. Even after you refresh the browser. If this happens, it's because your…

Contents