Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
&引用;有一个YAML语法错误“&引用;在此上下文中不允许映射值“;_Yaml_Jekyll_Github Pages - Fatal编程技术网

&引用;有一个YAML语法错误“&引用;在此上下文中不允许映射值“;

&引用;有一个YAML语法错误“&引用;在此上下文中不允许映射值“;,yaml,jekyll,github-pages,Yaml,Jekyll,Github Pages,有太多的帖子描述了同样的错误,我试着把它们全部读一遍,以找出到底是什么导致了我的错误 我已经尝试了十一种不同的方式来破坏这个文件,甚至把它恢复到原来的文件——仍然没有运气。我错过了什么 错误应该出现在“第3行第22列”上,但这并不存在。我在客户端没有jekyll解析器,一切都是通过GitHub页面处理的 # #此文件包含用于自定义站点的配置标志 # #站点名称(显示在标题中) 名称:“C#中的罗瓦尼” #简短的简历或描述(显示在标题中) 描述:“Ostinato、Pensato、Scormat

有太多的帖子描述了同样的错误,我试着把它们全部读一遍,以找出到底是什么导致了我的错误

我已经尝试了十一种不同的方式来破坏这个文件,甚至把它恢复到原来的文件——仍然没有运气。我错过了什么

错误应该出现在“第3行第22列”上,但这并不存在。我在客户端没有jekyll解析器,一切都是通过GitHub页面处理的

#
#此文件包含用于自定义站点的配置标志
#
#站点名称(显示在标题中)
名称:“C#中的罗瓦尼”
#简短的简历或描述(显示在标题中)
描述:“Ostinato、Pensato、Scormatura”
#你的头像或个人资料图片的URL(你可以使用你的GitHub个人资料图片)
化身:https://avatars3.githubusercontent.com/u/898478
#
#下面的标志是可选的
#
#在页脚中为您输入的每个用户名包含一个图标
页脚链接:
运球:
电邮:dev@rovani.net
脸谱网:
flickr:
吉特胡布:德罗瓦尼
instagram:
linkedin:
pinterest:
rss:#只需在此处键入任何可工作的rss图标即可
推特:戴维德罗瓦尼
stackoverflow:“用户/28310/drovani”
youtube:#频道/或用户/
googleplus:#个人资料用户名中plus.google.com之后的任何内容/
#输入您的Discus shortname(而不是用户名)以启用对帖子的评论
#您可以在您的帐户的设置页面上找到您的短名
论文:德罗瓦尼
#输入您的Google Analytics web跟踪代码(例如UA-2110908-2)以激活跟踪
谷歌分析:UA-82341148-1
#您的网站URL(例如。http://barryclark.github.io 或http://www.barryclark.co)
#用于Sitemap.xml和您的RSS源
网址:
#如果您将站点托管在GitHub页面上的项目存储库中
# (http://yourusername.github.io/repository-name)
#而不是您的用户存储库(http://yourusername.github.io)
#然后在此处添加baseurl,如下所示:“/repository name”
baseurl:“
#
# !! 您不需要更改下面的任何配置标志!!
#
永久链接:/:标题/
#你现在使用的是Jekyll的释放
版本:v1.2.0
#杰基尔3现在只支持克兰敦的降价
克拉姆敦:
#使用GitHub风格的标记,包括三个反勾选保护代码块
输入:GFM
#Jekyll3和GitHub页面现在只支持rouge进行语法高亮显示
荧光笔:胭脂
语法\u荧光灯\u选择:
#使用现有pygments语法突出显示css
css_类:“突出显示”
#设置Sass partials目录,因为我们使用@imports
sass:
样式::扩展#您可能更喜欢使用:compressed缩小
#使用以下插件
宝石:
-jekyll站点地图#使用官方的jekyll站点地图gem创建站点地图
-jekyll提要#使用官方的jekyll提要gem创建Atom提要
#从生产站点中排除这些文件
排除:
-Gemfile
-Gemfile.lock
-许可证
-自述文件
-CNAME

问题不在_config.yml文件中,而是在一个完全不同的文件中。因此,如果您在构建github pages Jekyll页面时收到此错误消息,请不要假定它位于唯一的“YAML”文件中。搜索已添加的任何新文件,以查找第3行第22列中的错误


在我的例子中,它是前面一篇文章的标题,后面有一个冒号和一个空格,我需要用双引号括起来。

必须进行一些预处理才能将文件置乱。YAML语法正确。@Anthon知道我可以尝试进行什么样的调试工作来解决预处理问题吗?我是通过GitHub web UI来完成这一切的。
#
# This file contains configuration flags to customize your site
#

# Name of your site (displayed in the header)
name: "Rovani in C#"

# Short bio or description (displayed in the header)
description: "Ostinato, Pensato, Scordatura"

# URL of your avatar or profile pic (you could use your GitHub profile pic)
avatar: https://avatars3.githubusercontent.com/u/898478

#
# Flags below are optional
#

# Includes an icon in the footer for each username you enter
footer-links:
  dribbble:
  email: dev@rovani.net
  facebook:
  flickr:
  github: drovani
  instagram:
  linkedin:
  pinterest:
  rss: # just type anything here for a working RSS icon
  twitter: davidrovani
  stackoverflow: "users/28310/drovani"
  youtube: # channel/<your_long_string> or user/<user-name>
  googleplus: # anything in your profile username that comes after plus.google.com/


# Enter your Disqus shortname (not your username) to enable commenting on posts
# You can find your shortname on the Settings page of your Disqus account
disqus: drovani

# Enter your Google Analytics web tracking code (e.g. UA-2110908-2) to activate tracking
google_analytics: UA-82341148-1

# Your website URL (e.g. http://barryclark.github.io or http://www.barryclark.co)
# Used for Sitemap.xml and your RSS feed
url:

# If you're hosting your site at a Project repository on GitHub pages
# (http://yourusername.github.io/repository-name)
# and NOT your User repository (http://yourusername.github.io)
# then add in the baseurl here, like this: "/repository-name"
baseurl: ""

#
# !! You don't need to change any of the configuration flags below !!
#

permalink: /:title/

# The release of Jekyll Now that you're using
version: v1.2.0

# Jekyll 3 now only supports Kramdown for Markdown
kramdown:
  # Use GitHub flavored markdown, including triple backtick fenced code blocks
  input: GFM
  # Jekyll 3 and GitHub Pages now only support rouge for syntax highlighting
  syntax_highlighter: rouge
  syntax_highlighter_opts:
    # Use existing pygments syntax highlighting css
    css_class: 'highlight'

# Set the Sass partials directory, as we're using @imports
sass:
  style: :expanded # You might prefer to minify using :compressed

# Use the following plug-ins
gems:
  - jekyll-sitemap # Create a sitemap using the official Jekyll sitemap gem
  - jekyll-feed # Create an Atom feed using the official Jekyll feed gem

# Exclude these files from your production _site
exclude:
  - Gemfile
  - Gemfile.lock
  - LICENSE
  - README.md
  - CNAME