Search code examples
rubygitlabjekyll

Jekyll blog theme now showing blog posts on GitLab Pages


I've been using the Emerald jekyll theme for my blog on GitHub Pages. It all works great on GitHub, but I've wanted to move to GitLab.

I got the blog working with all necessary gems (like jekyll and jekyll-paginate), but the blog posts aren't working and I get 404.

Test it live here

I made the repo public so everyone can have a look and possibly identify my problem.


Solution

  • Just add a .html extension to your links.

    https://remieditor.gitlab.io/blog/plausible-gitlab-moving.html

    Github provides an option for serving without the extension, however I don't believe that Gitlab allows this yet. See this thread: https://gitlab.com/gitlab-org/gitlab-pages/issues/95

    Change your permalink configuration:

    permalink: /:title:output_ext