Skip to content

Instantly share code, notes, and snippets.

@pije76
Forked from buchin/gist:9872710
Last active August 29, 2015 14:06
Show Gist options
  • Save pije76/f5b9fb3beda76530095c to your computer and use it in GitHub Desktop.
Save pije76/f5b9fb3beda76530095c to your computer and use it in GitHub Desktop.
{% api %}{% image %}
{% for index, item in api%}
{% for imageindex, image in images %}
{% if index < 5 %}
{% if index == imageindex %}
<div class="entry clearfix">
<a href="{{ item.link }}" rel="nofollow" title="{{ item.title }}"><img src="{{ image.mediaurl }}" alt="{{ image.title }}"></a>
<h2 class="post-title"><a rel="nofollow" href="{{ item.link }}" title="{{ item.title }}">{{ item.title }}</a></h2>
{{ item.description }}...
<p class="readmore"><a class="more-link" href="{{ item.title | build_permalink_for 'tag' }}" rel="nofollow" title="{{ item.title }}">Read More</a></p>
<div style="clear:both;"></div>
</div>
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment