1
votes

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.

2

2 Answers

2
votes

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
0
votes

Since GitLab 11.8 (February 2019) this should work

.html extensions are now automatically resolved for Pages sites

A file in your Pages site called /sub-page.html can now also be accessed as /sub-page, giving you more options over how your site appears to your users.

See documentation and gitlab-org/gitlab-pages issue 95