![](/img/trans.png)
[英]Is there any way to download _blogger_ theme and upload it to _GitHub_ pages instead of coding **css** from scratch or using **jekyll** theme?
[英]Jekyll theme not rendering in Github pages
我正在將我的網站從 Siteleaf 切換到 Github。該網站加載完美,但 CSS 未呈現。
這是我的 _config.yml
title: Awesomeness
timezone: UTC
collections:
posts:
title: Posts
output: true
uploads:
title: Uploads
output: true
defaults:
- scope:
path: ''
type: posts
values:
layout: post
permalink: "/posts/:title/"
- scope:
path: ''
type: pages
values:
layout: page
permalink: pretty
這是我的 Gemfile.lock
GEM
remote: http://rubygems.org/
specs:
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
colorator (1.1.0)
concurrent-ruby (1.1.10)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
eventmachine (1.2.7)
ffi (1.15.5)
forwardable-extended (2.6.0)
http_parser.rb (0.8.0)
httparty (0.20.0)
mime-types (~> 3.0)
multi_xml (>= 0.5.2)
i18n (1.10.0)
concurrent-ruby (~> 1.0)
jekyll (4.2.2)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 1.0)
jekyll-sass-converter (~> 2.0)
jekyll-watch (~> 2.0)
kramdown (~> 2.3)
kramdown-parser-gfm (~> 1.0)
liquid (~> 4.0)
mercenary (~> 0.4.0)
pathutil (~> 0.9)
rouge (~> 3.0)
safe_yaml (~> 1.0)
terminal-table (~> 2.0)
jekyll-sass-converter (2.2.0)
sassc (> 2.0.1, < 3.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
kramdown (2.4.0)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.3)
listen (3.7.1)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
mime-types (3.4.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2022.0105)
multi_xml (0.6.0)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
psych (4.0.3)
stringio
public_suffix (4.0.7)
rack (2.2.3)
rb-fsevent (0.11.1)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.5)
rouge (3.28.0)
safe_yaml (1.0.5)
sassc (2.4.0)
ffi (~> 1.9)
siteleaf (2.1.2)
httparty (>= 0.16.0)
jekyll (>= 1.4.1)
psych (>= 2.1.0)
rack
stringio (3.0.1)
terminal-table (2.0.0)
unicode-display_width (~> 1.1, >= 1.1.1)
unicode-display_width (1.8.0)
PLATFORMS
ruby
DEPENDENCIES
jekyll
siteleaf (~> 2)
BUNDLED WITH
2.1.4
我試圖在 _config.yml 中添加 baseurl 或 root 但我無法解決問題。 當我在本地提供網站時,它運行完美。 該問題僅出現在 Github 頁。
我通過從“/css/main.css”中刪除正斜杠解決了這個問題。 所以 Github 頁需要它是“css/main.css”
如果將來有任何迷失的靈魂面臨這個問題,我將離開這里。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.