From the course: Learning Static Site Building with Jekyll
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Add a post
- It's time to add some new posts to this Jekyll site. Posts go in the underscore posts folder. You can manually create a new file in that folder, but there's an even easier way. We'll need to install one more Jekyll plug-in first. In the Gemfile, I'm going to add a new line at the bottom and say, gem, with single quotes, "jekyll-compose"... then after the closing quote, comma. I'll say "group", colon... and then open square brackets, another colon. "jekyll_plugins". Close square brackets. Now I need to switch into my terminal, and type "bundle" to install that Gem that I just described in the Gemfile. With that plug-in installed, I don't have to manually create a file in the post folder. Now I can simply do, "bundle exec jekyll post", and then type a title for the new post. Let's call it, in quotes, "Hello world". Switch back into my code editor. Now I have a new file here in the post folder called "Hello world.md". The file name contains the date of the post and the name that I…
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.