【问题标题】:Why Github is failing to load resources from my jekyll project?为什么 Github 无法从我的 jekyll 项目中加载资源?
【发布时间】:2018-09-30 07:53:35
【问题描述】:

我希望有人可以帮助我解决这个问题,因为我一整天都在尝试几件事,但我仍然找不到这个问题的根源。 github无法加载jekyll内容...每次尝试都给我几个错误...我在这里搜索了类似的问题,我还按照其他帖子中的建议修改了url中的yml文件,但没有成功。如果有人可以帮助我,我将不胜感激,因为我真的失去了自动取款机。蒂亚 https://github.com/CarlasHub

enter image description here

【问题讨论】:

    标签: github yaml jekyll


    【解决方案1】:

    _config.yml 中,设置:

    baseurl: "/carlashub"
    url: "https://CarlasHub.github.io"
    

    【讨论】:

    • 嗨大卫,非常感谢你的帮助,部分解决了,因为它没有只显示 404,但没有加载我的 sass :( 我真的不知道问题出在哪里......如果你有任何提示请让我知道carlashub.github.io/carlashub
    【解决方案2】:

    您是否在 Github 存储库的设置中设置了 Github 页面?

    转到 --

    设置 > 选项 > 向下滚动 > GitHub 页面

    确保您已选择源,这将在您的存储库中生成一个包含 URL 的 CNAME 文件。片刻之后,您将能够看到您的网站。

    以下是我在大多数项目中使用的 config.yaml 示例。

    title: Site Title
    url: "https://domainame.com"
    baseurl: /
    google_analytics_key: 
    
    email:
    description:  Test stuff.
    
    # Build settings
    paginate:       5
    paginate_path:  "/blog/:num/"
    permalink:      pretty
    
    markdown:       kramdown
    permalink:      /:title/
    
    sass:
      style: compressed
    
    plugins:
      - jekyll-feed
    exclude:
      - Gemfile
      - Gemfile.lock
    
    plugins:        [jekyll-paginate]
    

    【讨论】:

      猜你喜欢
      • 2016-02-14
      • 1970-01-01
      • 2013-05-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-01-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多