Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% for post in craft.entries.section('posts') %}
- {% if loop.first and craft.request.pageNum == 1 %}
- <div class="box col-sm-4 col-md-6">
- <div class="thumb featured dark-overlay">
- <div class="photo">
- <a href="{{post.url}}">
- <img src="{{post.postImage.first().getUrl('featuredImage')}}" alt="" width="715" height="715">
- <span class="info"><strong class="big-title">{{post.title}}</strong><span class="excerpt">{{post.tagline}}</span>
- <em class="arrow-right"></em></span>
- </a>
- </div>
- </div>
- </div>
- {% else %}
- <div class="box col-xs-6 col-sm-4 col-md-3">
- <div class="thumb">
- <div class="photo">
- <a href="{{post.url}}">
- <img src="{{post.postImage.first().getUrl('thumbImage')}}" alt="" width="434" height="434">
- <span class="info"><strong class="title">{{post.title}}</strong>
- <!--<span class="excerpt">{{post.tagline}}</span>-->
- <em class="arrow-right"></em></span>
- </a>
- </div>
- </div>
- </div>
- {% endif %}
- {% endfor %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement