Jekyll发布HTML格式不正确

时间:2016-02-09 12:22:29

标签: jekyll github-pages

我正在使用GIT HUB页面生成我的博客,博客中的一些帖子似乎在某些工作时无法正确呈现。

所有格式化和显示都将丢失,页面最终会显示实际的md文件而不是html。 您可以在http://pratikvasani.github.io/archive/2015/01/16/Valuetype-or-reference-type/

链接中查看相关问题

有问题的.md文件位于https://github.com/pratikvasani/pratikvasani.github.io/blob/master/_posts/2015-01-16-Valuetype-or-reference-type.md

---
layout:     post
title:      Value type
date:       2015-12-25
summary:    Value types.
categories: MVC6 Localization 
---

This looks like a amateur question , but don't be surprised if you get the answer wrong.
There is more to understand in value types and reference types than saying


Value types are data types which are stored on the stack while Reference types are stored on the Heap.

While this is a very popular statement which is used to differentiate value types and reference types , it is not entirely true.
....

有谁能告诉我什么错了?我检查.md文件的格式及其正确。编码也很好。

2 个答案:

答案 0 :(得分:2)

您的文件已ln -s frameworks/testing/version.gradle version.gradle 编码。正如您在Jekyll documentation中所看到的,UTF-8文件必须编码时没有BOM。

删除BOM并运行。

答案 1 :(得分:0)

文件开头有一个不可打印的字符。 我创建了PR

你可以通过比较github如何处理降价来轻松注意到它:problematic fileother post file