Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jekyll architect theme not working on GitHub page

Tags:

github

jekyll

I created a GitHub page with a repository called myusername.github.io I cloned that (empty) repo to my PC and using jekyll command line I created a new blog inside of this folder. It was building correctly on my PC and on GitHub with the standard theme 'minima'. However, I wanted to use the 'architect' theme and followed their instructions (just add theme: jekyll-theme-architect on the _config.yml) to use it but got a messed up page as a result. What is going on? How can I fix that?

I am totally pissed off by this. The instruction is so simple, but does not work!!!

like image 297
Luís Telles Avatar asked May 16 '17 19:05

Luís Telles


People also ask

How does Jekyll work with GitHub Pages?

Jekyll is a static site generator with built-in support for GitHub Pages and a simplified build process. Jekyll takes Markdown and HTML files and creates a complete static website based on your choice of layouts. Jekyll supports Markdown and Liquid, a templating language that loads dynamic content on your site.


1 Answers

This is due to not having the proper gem locally, so you can install the gem explicitely or add the github-pages gem that contains that theme as it is supported by Github pages.

Add the following to your site's Gemfile:

gem "github-pages", group: :jekyll_plugins

then run bundle install.

Edit index.md and change the layout to the default one: layout: default.

Remove the lines that contains an include tag in about.md for example: {% include icon-github.html username="jekyll" %}.

and you will be able to use the new theme.

like image 89
marcanuy Avatar answered Sep 28 '22 04:09

marcanuy