gpt4 book ai didi

yaml - Jekyll config.yml 在解析 block 映射时没有找到预期的键

转载 作者:行者123 更新时间:2023-12-04 14:11:03 26 4
gpt4 key购买 nike

我在命令行终端中收到此错误:

did not find expected key while parsing a block mapping at line 18 column 7



我的 jekyll _config.yml YAML 文件如下所示:
title: Oliver Williams - Portfolio
url: "http://yourdomain.com" # the base hostname & protocol for your site

# Build settings
markdown: kramdown
permalink: /:title

defaults:
-
scope:
path: "" # an empty string here means all files in the project
type: "posts" # previously `post` in Jekyll 2.2.
values:
layout: "post"

-
scope:
path: "" # an empty string here means all files in the project
type: "pages"
values:
layout: "page"

最佳答案

我不确定 _config.yml 的格式/缩进。

这是正确的:

title: Oliver Williams - Portfolio
url: "http://yourdomain.com"
markdown: kramdown
permalink: /:title

defaults:
-
scope:
path: ""
type: "posts"
values:
layout: "post"
-
scope:
path: ""
type: "pages"
values:
layout: "page"

关于yaml - Jekyll config.yml 在解析 block 映射时没有找到预期的键,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33066015/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com