Skip to content

Instantly share code, notes, and snippets.

@mrmartineau
Last active January 20, 2017 06:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrmartineau/e0ad7ae56552c9571e285e30e3469476 to your computer and use it in GitHub Desktop.
Save mrmartineau/e0ad7ae56552c9571e285e30e3469476 to your computer and use it in GitHub Desktop.
From my blog post: Creating dynamic layouts with Jekyll
{% for item in page.partials %}
{% include {{item.name}}.html
spaced=item.spaced
padded=item.padded
src=item.src
title=item.title
body=item.body
link=item.link
href=item.href
gutter=item.gutter
stack=item.stack
poster=item.poster
content=item.content
bgcolor=item.bgcolor
bgimg=item.bgimg
color=item.color
columnwidth=item.columnwidth
centred=item.centred
cite=item.cite
attribute=item.attribute
id=item.id
size=item.size
contained=item.contained %}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment