Skip to content

Empty _site generated when using utf-8 characters #503

Closed
@mmozuras

Description

@mmozuras

Steps to reproduce:

1 Step one:

mkdir jekyll
cd jekyll
mkdir _layouts

2 Create index.html with this content:


---
layout: default
title: Test

---
<div></div>

3 Create _config.yml with this content:

markdown: rdiscount
auto: true
permalink: pretty

4 Create default.html in _layouts with this content:

<!doctype html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]>    <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<head>
  <meta charset="utf-8">
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  <title>{{ page.title }}</title>
</head>
    <body>
        <h1>Mindaugas Mozūras</h1>
    </body>
</html>

5 Run:

jekyll --server

6 Observe that _site is completely empty.
7 Delete 'Mozūras' from default layout. Repeat step 5 and find that this time _site is not empty.

I'm using:

  • MacVim/vim. Made sure it doesn't add any BOM characters.
  • Ruby 1.9.2p290
  • Jekyll 0.11.2
  • RDiscount 1.6.8

I also added this to my ~/.profile:

LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8

GitHub Pages also failed to generate new version of my site when I added an utf-8 character.

What am I missing?
Thanks in advance for your help.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions