GitHub Pages - frontmatter导致页面中断

时间:2016-12-29 12:04:32

标签: jekyll github-pages yaml-front-matter

我按照https://github.com/blog/2228-simpler-github-pages-publishing

从我的/docs文件夹发布网页

如果我在页面上包含此前端内容,则构建会中断。

---
layout: page
title: "Help Page"
permalink: /help
---

页面已构建,但仅包含<body>元素中的数据。没有标题,没有样式表,只是乱码HTML。如果我使用layout: post,也会出现同样的情况。

enter image description here

如果我删除了行layout: page,那么一切正常。

根据GitHub文档 - https://help.github.com/articles/configuring-jekyll/ - 我应该可以在我的页面中使用这个前端。

我错过了什么令人眼花缭乱的事情?

1 个答案:

答案 0 :(得分:0)

“slate”主题只有一个“默认”布局。

所以切换到layout: default解决了问题。

相关问题