Alex
Alex

Reputation: 488

Getting Include parameters to work in Octopress/Jekyll

I'm using Octopress 2.0 and can't seem to get parameters to work when I set an include.

I'm basically trying to do:

{% include foo.html bar="Hello World" %}

When I load the page I get this error: Include file ‘foo.html bar="Hello World"' contains invalid characters or sequences

According to Jekyll documentation, this should work, right?

Upvotes: 0

Views: 44

Answers (1)

David Jacquel
David Jacquel

Reputation: 52809

The include directive is ok and produces no error.

{% include foo.html bar="Hello World" %}

Look for an error into _includes/foo.html or send code for further investigation.

Upvotes: 0

Related Questions