【问题标题】:Github Pages does not display pages like local machineGithub Pages 不像本地机器那样显示页面
【发布时间】:2019-02-07 18:31:36
【问题描述】:

我使用最小主题创建了一个带有 jekyll 的站点。该站点在我的本地计算机(localhost:4000)中很好地显示了所有内容。但它在 Github Pages 上显得很奇怪。它看起来像 this。这是托管在 github 上的 source。我尝试修改了 Gemfile 和 Gemfile.lock 文件,但仍然没有改变。

【问题讨论】:

    标签: github jekyll github-pages gemfile gemfile.lock


    【解决方案1】:

    您的博客中没有帖子。没有帖子没有打印minima home template

    添加一个帖子,魔法就会附加。

    【讨论】:

    • 感谢您的回答。我找出原因。我在_config.xml 中将变量baseurl 保留为空。将baseurl 设置为/blog 后页面看起来正常。
    猜你喜欢
    • 2020-06-27
    • 1970-01-01
    • 1970-01-01
    • 2022-08-15
    • 2022-01-12
    • 1970-01-01
    • 2021-12-13
    • 1970-01-01
    • 2023-03-17
    相关资源
    最近更新 更多