Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
- integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <html lang="en"></html>
- {% load staticfiles %}
- {% load thumbnail %}
- {% block body_block %}
- <div class="container">
- <div class="card-deck">
- {% for thumbnail in thumb %}
- {% thumbnail thumbnail.image "150x150" crop='center' as img %}
- {% if forloop.counter|divisibleby:2 %}
- <div class="card">
- <img class="card-img-top" src="{{ img.url }}" alt="Card image cap">
- <div class="card-body">
- <h5 class="card-title">Card title</h5>
- <p class="card-text">This is a longer card with supporting text below as a
- natural
- lead-in
- to additional content. This content is a little bit longer.</p>
- <div class="card-footer">
- <small class="text-muted">Last updated 3 mins ago</small>
- </div>
- </div>
- </div>
- {% endif %}
- {% endthumbnail %}
- {% endfor %}
- </div>
- </div>
- {% endblock %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement