{% comment %} This partial requires these parameters: * `entry`: The BlogEntry object to render. This partial accepts these optional parameters: * `show`: How much of the BlogEntry to render. Accepted values are "headline", "dateline", "summary", "summary+tags", and "body". Every value will render the parts listed before it, except "body" doesn't include "summary". Default "body". * `htag`: Name of the HTML tag to render the entry headline. Default "h3". {% endcomment %}
by
{% if show != "dateline" %} {% if show|default:"body" == "body" %} {{ entry.body|safe }} {% else %} {{ entry.summary|safe }} {% endif %} {% if show|default:"body" != "body" %} on {{ entry.pub_date|date:"F j, Y" }} {% endif %} {% if show != "summary" and entry.tags.exists %} {% endif %} {% endif %}{# show != "dateline" #} {% endif %}{# show != "headline" #}