私のような質問がたくさんありますが、そのほとんどはbaseurlを正しく使用しないことから発生します。しかし、私のwebsiteは、ベースルールを使用していません。ルートGithubページを使用します。私は実質的にはluminousrubyistによって移植されたAirspaceのテーマから私のウェブサイトをフォークしました。そのうちwebsiteが正しく表示されています。したがって、誰かが何が間違っているかを理解できるなら、私はそれを感謝します。私は何時間もそれを理解しようとしています。Jekyllのgithub-pagesウェブサイトではローカル以外のCSSフォーマットは表示されません
私のGithub page
マイ_config.ymlファイル:から(
ところでbaseurl: "" #if not used.
、あなたのindex.htmlを使用page.html
レイアウト:あなたの_config.yml
にbaseurl
を設定する
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