有许多类似于我的问题,但大多数都是由于没有正确使用baseurl而引起的。然而,我的website甚至没有使用baseurl。它使用根Github页面。我的网站基本上是从luminousrubyist移植的空域主题派生出来的,它的website可以正确显示,所以后来我做了一个更改,阻止了它的正确显示。因此,如果其他人能找出问题所在,我将不胜感激;我已经努力找出了几个小时。
我的Github page
我的_config.yml文件:
title: "My Portfolio"
subtitle: "My portfolio, detailing my experience"
# Base URL of site. It should always start with a slash,
# and never end with a slash. Set it to a blank value if hosting at the
# root of your server.
# baseurl: "/" # the subpath of your site
url: "http://austinstover.github.io" # the base hostname & protocol for your site
cover: "/assets/cover.png"
logo: "/assets/logo.png"
# Build settings
markdown: kramdown
# Google analytics
ga_tracking_id: "UA-90009514-1"
# Category descriptions (for archive pages)
descriptions:
- cat: jekyll
desc: "Posts describing Jekyll setup techniques."
- cat: dummy
desc: "Just some placeholder posts, lorem ipsum and the rest."
exclude:
- "/vendor/"
- "Gemfile"
- "Gemfile.lock"
- "README.md"
- "LICENSE.md"
- "*.gemspec"
keep_files:
- "CNAME"
- ".git"
- ".gitignore"发布于 2017-01-12 08:21:55
尝试在_config.yml中设置baseurl:
baseurl: "" #if not used.顺便说一句,你的index.html使用page.html布局(来自_layouts),使用包含head.html (来自_includes)的default.html布局。这个函数调用{{ site.baseurl }},但它是未定义的。
https://stackoverflow.com/questions/41586083
复制相似问题