Learning Objectives

Build your own website

Choose a Jekyll Theme and Fork.

Make it your homepage

Deploy your website

Edit your website.

Configuring your website

  • Most of the configuration settings are in “_config.yml”.

  • Make sure you use spaces instead of tabs in side “_config.yml”.

  • Make sure you use a space after : when setting key-value pairs.

  • Most of these settings are self explanatory, and you can edit them to suit your needs. For example, here is the original “_config.yml” file:

     

  • And here is the one I did after I edited it:

     

  • More info on Configurations: https://jekyllrb.com/docs/configuration/

Adding content to your website

  • The main types of content of a Jekyll website are pages and posts.

Pages

  • To add a page, just include a markdown file (ends with “.md”).

  • This markdown file will be converted to an HTML file when uploaded to GitHub.

  • Each markdown file has a YAML header (just like in R Markdown files) and what goes into this header depends on the theme you chose. Just look at a few examples from that theme.

  • You can edit the homepage by editing “index.md”

Posts

  • All posts go in the _posts directory. These are also markdown files (ends in “.md”). Your theme will have a default way of displaying posts on the homepage that I would not mess with until you get more experience.

  • All posts should be titled with the following format:

    YYYY-MM-DD-title.md

    The theme will generally display links to these posts in reverse-chronological order.

  • All posts will again have a YAML header. Just look at a few examples from the theme for what should go there.

Troubleshooting Build Errors

  • See here for helpful hints on fixing build errors.

  • GitHub will send you an email if your website fails to build. Go to the above link and scroll through the types of errors to see hints on where to look for the error in your source.

My Website