如何修复我的 Jekyll 网站仅在本地加载

How to fix my Jekyll website from only loading locally

我克隆并修改了 LogChimp Jekyll theme locally on my Windows 10 and pushed my changes to an online Github Pages repository titled "Timeline".

我在我的终端输入 bundle exec jekyll serve,我的网站在本地正确显示。在我将更改推送到我的在线存储库后,website does not display correctly 是空白的。

这是我的 config.yml 文件:

title: Timeline – A Log of Life Events
url: http://www.joshuagalan.com/timeline
#logo: assets/img/logchimp.png
teams: true # Show team members
terminology: Changelog # By default we call this a changelog, but some might want to call it "release notes", or "changes" (Changelog, Release notes, Changes, Updates, News)

# Build settings
baseurl: /timeline/
theme: logchimp
permalink: /:title/

# Exclude from processing.
exclude:
  - Gemfile
  - Gemfile.lock
  - node_modules
  - vendor/bundle/
  - vendor/cache/
  - vendor/gems/
  - vendor/ruby/
  - .git

我是不是做错了什么?

github 页(see supported gems)不支持您的 jekyll 主题。

您可以将生成的页面提取到不同分支中的 github,或者使用其他提供商,例如 Netlify