How do I do this loop in Django template?

Posted by alex on Stack Overflow See other posts from Stack Overflow or by alex
Published on 2010-04-09T03:45:22Z Indexed on 2010/04/09 3:53 UTC
Read the original article Hit count: 262

Filed under:
|
|
|
{% for d in mydata %}
    {{ d.title }}
{% endfor %}

However, I would like the first one to be bolded. How can I use the loop to say...if the d is the first one, then bold it?

© Stack Overflow or respective owner

Related posts about django

Related posts about template