有許多類似於我的問題,但其中大多數是由於未正確使用baseurl而產生的。然而,我的website甚至沒有使用baseurl。它使用根Github頁面。我基本上把我的網站從luminousrubyist的正確顯示的空域主題中分離出來,所以在某些地方我做了一個改變,使它無法正確顯示。因此,如果其他人能夠弄清楚什麼是錯的,我將不勝感激;我一直試圖弄清楚幾個小時。Jekyll github-pages網站不顯示CSS格式,除本地外
我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"
我注意到的第一件事是前面的問題顯示在您的頁面上,這意味着它沒有應用模板。我會檢查文件的編碼/行結尾。 – RobertKenny