Created
April 27, 2013 20:08
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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