How to get hyde/lanyon working with project pages

Hyde and lanon are two pretty jekyll themes, however to get them working with project pages as opposed to personal pages, some editing needs to be done.

Clean up

First of all delete the file cname as this is for private domains and not required if we’re using github.

Second of all delete relative_permalinks: false from line 7 of config.yml, as this is no longer supported.

Set baseurl

First, go to _config.yml and edit the content for url and baseurl like so

url:              https://username.github.io
baseurl:          /page/

the trailing slash after page/ is v.important so don’t forget it.

Edit HTML layouts

Next we need to edit a 3 HTML files.

We’re going to add the line “/hyde/” which seems to be missing and nececessary

First go to index.html and add /hyde/ to line 10 (post title href)

<h1 class="post-title">
      <a href="/hyde/">

Locate post.html in the layouts folder.

Add /hyde/ to line 17

 <h3>
          <a href="/hyde/">

Finally, go to sidebar.html in the includes folder and update line 24, adding /hyde/ to

            <a class="sidebar-nav-item" href="/hyde/"></a>