2016-02-12 63 views
0

我有一个Jekyll网站,一切工作正常,只是它不解析markdown中的<h2>标签(我也尝试把实际的HTML,但仍然无法正常工作,例如:herehere。当我与一个本地服务器一切正常,虽然测试Jekyll不解析##标签

Source code/apps页:

--- 
layout: page 
title: My Apps 
--- 

Here's a list of all my published apps, sorted by platform. 

[If you need Support and would like to open a ticket, please go to the Support page.](/support) 

Most applications are available in English, Italian and Polish so far. 

[Click here to take a look at the Patch Notes](/apps/patchnotes) 

{% for member in site.data.apps %} 

{% if member.link %} 

##{% if member.fontAwesome %}{% for image in member.fontAwesome %}<i class="fa fa-{{ image }}"></i> {% endfor %}{% endif %}<a href="{{ member.link }}">{{ member.name }}</a> 
<br><br> 
{{ member.description }} 

{% if member.bundleName %}Included in [{{ member.bundleName }}]({{bundleLink }}) bundle.{% endif %} 
{% endif %} 

{% endfor %} 

[Source for app/patchnotes - Page Layout]

回答

2

试试这个:

## {% if member.fontAwesome %} 

我只是说##{℅

让我知道,如果它的工作原理,是之间的空白?

+0

工程,奇怪,因为我确信我已经尝试过之前...谢谢。 – vale

+0

不客气!如果你遇到kramdown,试试看看这个[备忘单](http://kramdown.gettalong.org/syntax.html)。这很有用!嘿,你还介意我的回答吗? :)它会帮助我在这里堆栈溢出....;) –

+0

会看看=) – vale

1

您的Gemfile包括一些依赖项,如bourbontime-to-read。这些不支持插件/宝石(list of gh-pages supported gems/plugins)。

如果您仅在您的Gemfile中留下github页面宝石并在本地构建或提供服务,则会失败。 我认为Github页面也失败了,但更优雅。

如果你想使用“exotics”宝石,你将不得不在本地生成并在github上推送生成网站。

+0

当我有一些时间,我会看看这个,谢谢你提出。 – vale