Created
February 12, 2011 23:09
-
-
Save did/824224 to your computer and use it in GitHub Desktop.
looping thru asset collections
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% for feature in asset_collections.features %} | |
{% if feature.home %} | |
<li class="feature {% cycle ' ', ' ', 'last' %}"> | |
<div class="image"> | |
{% if feature.popup %} | |
<a href="{{ feature.url }}" target="_blank"> | |
<img src="{{ feature.thumb.url }}" alt="{{ feature.name }}" /> | |
</a> | |
{% else %} | |
<img src="{{ feature.thumb.url }}" alt="{{ feature.name }}" /> | |
{% endif %} | |
</div> | |
<h3>{{ feature.name }}</h3> | |
<div class="text">{{ feature.short_description }}</div> | |
</li> | |
{% endif %} | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment