Skip to content

Instantly share code, notes, and snippets.

@benphelps
Created June 26, 2016 19:17
Show Gist options
  • Save benphelps/b5d8f75be1979d6314f3f9d6e2b7e381 to your computer and use it in GitHub Desktop.
Save benphelps/b5d8f75be1979d6314f3f9d6e2b7e381 to your computer and use it in GitHub Desktop.
<div class="col-sm-3 text-center">
<i class="fa fa-beer fa-lg"></i>
<h4>A title</h4>
<p>Some content</p>
</div>
<div class="col-sm-3 text-center">
<i class="fa fa-beer fa-lg"></i>
<h4>A title</h4>
<p>Some content</p>
</div>
<div class="col-sm-3 text-center">
<i class="fa fa-beer fa-lg"></i>
<h4>A title</h4>
<p>Some content</p>
</div>
-
content = [
{ title: 'A title', body: 'Some content', icon: 'beer', size: 'lg' },
{ title: 'A title', body: 'Some content', icon: 'beer', size: 'lg' },
{ title: 'A title', body: 'Some content', icon: 'beer', size: 'lg' }
]
each block in content
.col-sm-3.text-center
i(class="fa fa-#{block.icon} fa-#{block.size}")
h4= block.title
p= block.body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment