Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ gems:

You'll be able to use all of Haml's tricks to write some really clean markup. You can use liquid filters easily by just rendering the liquid tags as shown below. Have fun!

**Important**: For Jekyll to invoke Haml on your file, it must have front-matter (the section contained between the `---`) at the top. If you don't have any front-matter, you need to include an empty one (see below for example), otherwise Jekyll might serve your Haml file as is.

```haml
---
title: Story Time
Expand All @@ -36,6 +38,13 @@ permalink: page/
$(document).ready(function(){});
```

```haml
---
---
.title
%h1 This is a page without front-matter content
```

### Markdown blocks

For clean content blocks, I find it helps to use Haml's `:markdown` filter if I can get away with it.
Expand Down