Jekyll 博客主题现在在 GitLab 页面上显示博客文章
Jekyll blog theme now showing blog posts on GitLab Pages
我一直在 GitHub 页面上为我的博客使用 Emerald jekyll theme。在 GitHub 上一切都很好,但我想搬到 GitLab。
我的博客使用了所有必要的 gems(比如 jekyll 和 jekyll-paginate),但是博客文章不起作用,我收到 404。
现场测试here
我做了 repo public 这样每个人都可以看看并可能找出我的问题。
只需为您的链接添加 .html
扩展名。
https://remieditor.gitlab.io/blog/plausible-gitlab-moving.html
Github 提供了一个不带扩展名的服务选项,但我认为 Gitlab 还不允许这样做。请参阅此线程:https://gitlab.com/gitlab-org/gitlab-pages/issues/95
更改永久链接配置:
permalink: /:title:output_ext
Since GitLab 11.8 (February 2019) 这应该有效
.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.
我一直在 GitHub 页面上为我的博客使用 Emerald jekyll theme。在 GitHub 上一切都很好,但我想搬到 GitLab。
我的博客使用了所有必要的 gems(比如 jekyll 和 jekyll-paginate),但是博客文章不起作用,我收到 404。
现场测试here
我做了 repo public 这样每个人都可以看看并可能找出我的问题。
只需为您的链接添加 .html
扩展名。
https://remieditor.gitlab.io/blog/plausible-gitlab-moving.html
Github 提供了一个不带扩展名的服务选项,但我认为 Gitlab 还不允许这样做。请参阅此线程:https://gitlab.com/gitlab-org/gitlab-pages/issues/95
更改永久链接配置:
permalink: /:title:output_ext
Since GitLab 11.8 (February 2019) 这应该有效
.html
extensions are now automatically resolved for Pages sitesA 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.