After following the standard GitHub Pages tutorial I went ahead and created a new GitHub Pages repo to host my docs.

The following GitHub Pages repos helped me with ideas.

This pages is mostly documenting my preferences and changes.

Table of Contents

Adding a table of contents to all articles was easy to achieve using the allejo/jekyll-toc repo.

I copied the toc.html file into my _includes directory and then created a _layouts/post.html file. My starting point for the post.html file was to copy the content from the same file held in the Minima repo.

I then amended my copy of the post.html file as follows.

...
<div class="post-content e-content" itemprop="articleBody">
  {% include toc.html html=content %}
  <hr>
  {{ content }}
</div>
...

This outputs the table of contents at the top of every article, then outputs a horizontal line and then outputs the article content.

Theme

I picked the Minima theme but decided to use the remote version, as opposed to the GitHub version. The GitHub version is older and didn’t allow me to select the dark skin that I wanted.

# _config.yml
...
remote_theme: jekyll/minima
minima:
  skin: dark
...

Favicon

Drop your favicon.ico file into the repo root directory.

Create a _includes/custom-head.html file.

<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">