{% set page_title = config.page_title.format(group=config.group, date=month.label, page=pagination.current) %} {% set meta_description = config.meta_description.format(group=config.group, date=config.date) %} {{ page_title }} {% if config.publish_rss_feed %} {% endif %}
{% if pagination.total > 1 %}
    {% for p in range(1, pagination.total + 1) %}
  • {{ p }}
  • {% endfor %}
{% endif %}
    {% for m in messages %} {% set day = m.date.strftime("%d %B %Y") %} {% if loop.index0 == 0 or day != messages[loop.index0 - 1].date.strftime("%d %B %Y") %}
  • {{ day }} ({{ dayline[m.date.strftime("%Y-%m-%d")].count }} messages)
  • {% endif %}
  • {% if m.user.avatar %} {% endif %}
    {% if config.show_sender_fullname %} {{ m.user.first_name }} {{ m.user.last_name }} (@{{ m.user.username }}) {% else %} @{{ m.user.username }} {% endif %} {% if m.reply_to %} ↶ Reply to #{{ m.reply_to }} {% endif %} #{{ m.id }} {% if m.user.tags %} {% for t in m.user.tags %} {{ t }} {% endfor %} {% endif %} {{ m.date.strftime("%I:%M %p, %d %b %Y") }}
    {% if m.type == "message" %} {{ nl2br(m.content | escape) | safe | urlize }} {% else %} {% if m.type == "user_joined" %} Joined. {% elif m.type == "user_left" %} Left. {% endif %} {% endif %}
    {% if m.media %}
    {% if m.media.type == "webpage" and (m.media.title or m.media.description) %} {{ m.media.title or "Link" }} {% if m.media.description %}

    {{ m.media.description }}

    {% endif %} {% elif m.media.type == "poll" %}

    {{ m.media.title }}

    {{ m.media.description | sum(attribute="count") }} vote(s).
      {% for o in m.media.description %}
    • {{ o.percent }}%, {{ o.count }} votes
    • {% endfor %}
    {% elif m.media.thumb %}
    {{ m.media.title }}
    {% else %} {{ m.media.title }} {% endif %}
    {% endif %}
  • {% endfor %}
{% if pagination.total > 1 %}
    {% for p in range(1, pagination.total + 1) %}
  • {{ p }}
  • {% endfor %}
{% endif %}
{% if config.show_day_index %} {% endif %}