从 Github 下载 Jekyll 网站,但它不提供本地服务
Downloaded Jekyll website from Github and it doesnt serve Locally
我用 Jekyll 创建了一个网站并将其上传到 github。这让我可以免费托管我的网站(目前它主要只是一个模板)repo 在这里:
https://github.com/themallardcomplexion/themallardcomplexion.github.io
它使用域名在线运行良好,但我尝试下载并在本地运行,但出现以下错误:
配置文件:none
来源:C:/Users/isw/Desktop/Taijisoce/themallardcomplexion.github.io-master
目的地:C:/Users/isw/Desktop/Taijisoce/themallardcomplexion.github.io-master/_site
增量构建:禁用。使用 --incremental 启用
正在生成...
生成警告:themallardcomplexion.github.io-master/_posts/2019-01-19-welcome-to-jekyll.markdown 中请求的布局 'post' 不存在。
生成警告:themallardcomplexion.github.io-master/404.html 中请求的布局 'default' 不存在。
生成警告:themallardcomplexion.github.io-master/about.md 中请求的布局 'page' 不存在。
构建警告:themallardcomplexion.github.io-master/index.md 中请求的布局 'home' 不存在。
在 0.587 秒内完成。
自动重新生成:为 'C:/Users/isw/Desktop/Taijisoce/themallardcomplexion.github.io-master' 启用
服务器地址:http://127.0.0.1:4000
服务器 运行... 按 ctrl-c 停止。
它没有格式,只显示纯文本网站....有什么想法吗?
我尝试通过 Github 应用程序下载代码并将其下载为 zip
这些错误来自 Jekyll 寻找您构建的页面的布局。您需要创建一个 /_layouts/
文件夹,其中包含您网站所需的所有布局:
/_layouts/
|
|--default.html
|
|--post.html
|
|--page.html
|
这些都对应于即将出现的构建警告。有关详细信息,请参阅 Jekyll tutorials and docs。
此外,与其下载存储库,不如克隆它。这样您就可以在本地处理更改,然后将更改推送到 GitHub。这是 cloning a repo
文档的 link
我用 Jekyll 创建了一个网站并将其上传到 github。这让我可以免费托管我的网站(目前它主要只是一个模板)repo 在这里:
https://github.com/themallardcomplexion/themallardcomplexion.github.io
它使用域名在线运行良好,但我尝试下载并在本地运行,但出现以下错误:
配置文件:none 来源:C:/Users/isw/Desktop/Taijisoce/themallardcomplexion.github.io-master 目的地:C:/Users/isw/Desktop/Taijisoce/themallardcomplexion.github.io-master/_site 增量构建:禁用。使用 --incremental 启用 正在生成... 生成警告:themallardcomplexion.github.io-master/_posts/2019-01-19-welcome-to-jekyll.markdown 中请求的布局 'post' 不存在。 生成警告:themallardcomplexion.github.io-master/404.html 中请求的布局 'default' 不存在。 生成警告:themallardcomplexion.github.io-master/about.md 中请求的布局 'page' 不存在。 构建警告:themallardcomplexion.github.io-master/index.md 中请求的布局 'home' 不存在。 在 0.587 秒内完成。 自动重新生成:为 'C:/Users/isw/Desktop/Taijisoce/themallardcomplexion.github.io-master' 启用 服务器地址:http://127.0.0.1:4000 服务器 运行... 按 ctrl-c 停止。
它没有格式,只显示纯文本网站....有什么想法吗?
我尝试通过 Github 应用程序下载代码并将其下载为 zip
这些错误来自 Jekyll 寻找您构建的页面的布局。您需要创建一个 /_layouts/
文件夹,其中包含您网站所需的所有布局:
/_layouts/
|
|--default.html
|
|--post.html
|
|--page.html
|
这些都对应于即将出现的构建警告。有关详细信息,请参阅 Jekyll tutorials and docs。
此外,与其下载存储库,不如克隆它。这样您就可以在本地处理更改,然后将更改推送到 GitHub。这是 cloning a repo
文档的 link