服务于子目录的Jekyll
我只能让Jekyll在根目录下为我的博客服务:服务于子目录的Jekyll,jekyll,Jekyll,我只能让Jekyll在根目录下为我的博客服务:localhost:4000 当我在我的\u config.yml中给出如下所示的baseurl时,jekyll说它在http://0.0.0.0:4000/press,但是,我无法在浏览器中访问它,网址为localhost:4000/按 # Site settings title: Your Awesome Blog email: your-email@domain.com description: "Write an awesome descri
localhost:4000
当我在我的\u config.yml
中给出如下所示的baseurl时,jekyll说它在http://0.0.0.0:4000/press
,但是,我无法在浏览器中访问它,网址为localhost:4000/按
# Site settings
title: Your Awesome Blog
email: your-email@domain.com
description: "Write an awesome description for your new site here"
baseurl: "/press"
url: ""
# Build settings
markdown: rdiscount
relative_permalinks: true
permalink: date
rdiscount:
extensions: [footnotes, autolink, smart]
我错过什么了吗?
谢谢!:)
0.0.0:4000
和localhost:4000
不是同一个位置
您可以使用
jekyllserve--host localhost
,也可以在执行此操作的\u config.yml
中添加一行host:localhost
。谢谢你的帮助;我不敢相信我忽略了这一点。