这是jekyll服务器的_config.yml文件。用url写的ip是我的服务器IP。当我运行Jekyll服务时,它会给我这个消息
Configuration file: /root/cloudadic/_config.yml
Source: .
Destination: ./_site
Incremental build: disabled. Enable with --incremental
Generating...
done in 0.507 seconds.
Auto-regeneration: enabled for '.'
Configuration file: /root/cloudadic/_config.yml
Server address: http://127.0.0.1:4000
_config.yml
# Site settings
title: ACBD
description: "A minimal blog template, build with Jekyll."
url: "http://XXX.XX.XX.XXX:4000/"
# Build settings
baseurl: # Change this to your relative path (ex: /blog), or leave just a /
markdown: kramdown
source: .
destination: ./_site
permalink: /:title
paginate: 8
paginate_path: /page:num/
# Default values
defaults:
-
scope:
path: ""
type: "posts"
values:
layout: "post"
# Custom variables
version: "1.1.0"
# Options
custom_header: false
custom_nav_footer: false
reverse: false
gems:
- jekyll-sitemap
- jekyll-paginate
但是当我尝试访问此http://XXX.XX.XX.XXX:4000/时,博客无法加载。
答案 0 :(得分:0)
服务器地址:
http://127.0.0.1:4000
如果您希望服务器在http://XXX.XX.XX.XXX:4000/
回复,则必须在host
(see doc)中设置_config.yml
。
host: XXX.XX.XX.XXX