Skip to content

Instantly share code, notes, and snippets.

@jeanlaurent
Created April 27, 2013 20:08
Show Gist options
  • Save jeanlaurent/5474503 to your computer and use it in GitHub Desktop.
Save jeanlaurent/5474503 to your computer and use it in GitHub Desktop.
Jekyll with complex data in the YAML front matter parsed by liquid template
---
products:
- {prix: 17, name: mon-cahier-3, description: "<a href='mailto:someone@morlhon.net?subject=test%20test'>jl</a>"}
- {prix: 18, name: mon-cahier-7, description: "<h1>TEST</h1>"}
---
<html>
<head>
<title>Jekyll test</title>
</head>
<body>
{% for product in page.products%}
<p>
{{product.name}}<br/>
{{product.prix}} €<br/>
{{product.description}}
</p>
{% endfor %}
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment