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
From the course: Learning Static Site Building with Jekyll
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.