Skip to content

Commit

Permalink
update the grid example to use bootstrap 4 cards
Browse files Browse the repository at this point in the history
  • Loading branch information
arroyo committed Sep 12, 2017
1 parent fa501bf commit c28459f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions templates/grid/item.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<div class="card">
<img class="card-img-top" src="{{item.image}}" alt="{{item.name}}">
<div class="card-block">
<h4 class="card-title"><a href="{{item.url}}">{{item.name}}</a></h4>
</div>
</div>
7 changes: 4 additions & 3 deletions templates/layouts/grid/basic.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<div class="container-fluid">
<div class="row">
<h1>{{page.title}}</h1>
<h1>{{page.title}}</h1>

<div class="card-group">
{% for item in page.items %}
{{ include('pages/grid/item.html') }}
{{ include('grid/item.html') }}
{% endfor %}
</div>
</div>

0 comments on commit c28459f

Please sign in to comment.