Sampgun
Sampgun

Reputation: 2977

Strange HTML code after Jekyll build

After building my site, this strange code is created before included content.



The problem is that it causes a white line before included content

For example: my layout

{% include static/header.html %}
<div id="wrapper">
{% include static/left.html %}
<div id="main">
{% include static/functions.html %}
{% include static/workflow.html %}
<div id="article">
{{content}}
</div>
</div>
</div>

will return in firebug HTML

<div id="wrapper">
&#65279;<div id="left">
<img src="images/static/left.png" />
</div>
<div id="main">
&#65279;<img src="images/static/functions001.png" />
&#65279;<img src="images/static/workflow001.png" />
<div id="article">
&#65279;<p>CONTENT</p>
</div>
</div>
</div>

while in notepad++ I can see black dots at the beginning of the line. screenshot here: https://i.sstatic.net/b84mC.png

Upvotes: 2

Views: 192

Answers (1)

David Jacquel
David Jacquel

Reputation: 52809

It's you text editor which puts BOM.

Open your file in notepad++ then Encoding->encoding UTF-8 without BOM then save it.

Upvotes: 2

Related Questions