Запуск Jekyll Blog на Windows Хостах на http://127.0.0.1: 4000 C: / Program Files / Git / blog / - PullRequest
0 голосов
/ 14 января 2020

Я создал новый блог с использованием Jekyll и хотел бы разместить его на страницах GitHub. Прежде чем я внесу sh изменений, я хочу предварительно просмотреть сайт в окне Windows 10. Проблема в том, что Jekyll размещает индекс. html по URL-адресу http://127.0.0.1: 4000 C: / Program Файлы / Git / blog / и активы в http://127.0.0.1: 4000 / активы . По какой-то причине он добавляет C: / Program Files / Git к пути к индексу. html.

Я ожидаю, что он будет размещен в http://127.0.0.1: 4000 / блог . Есть идеи, что я делаю не так?

См. Вывод Bash ниже. Обратите внимание на адрес сервера и ошибки при попытке загрузки ресурсов.

Bash Output

_config.yml

title: Testing 123
email: testing123@gmail.com
description: >- # this means to ignore newlines until "baseurl:"
  Blog Description
baseurl: "" # the subpath of your site, e.g. /blog
url: "" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: testing123
github_username:  testing123
show_downloads: false
google_analytics: UA-00000000-1
repository: joebuschmann/joebuschmann.github.io

# Build settings
theme: jekyll-theme-minimal
plugins:
  - jekyll-feed

Gemfile

source "https://rubygems.org"
# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
#     bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
#gem "jekyll", "~> 4.0.0"
# This is the default theme for new Jekyll sites. You may change this to anything you like.
#gem "minima", "~> 2.5"
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here!
group :jekyll_plugins do
  gem "jekyll-feed", "~> 0.12"
end

# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
install_if -> { RUBY_PLATFORM =~ %r!mingw|mswin|java! } do
  gem "tzinfo", "~> 1.2"
  gem "tzinfo-data"
end

# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.1", :install_if => Gem.win_platform?
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...