Source Code

/ ssg / src / blog / templates / blog / partial / post_list.html

{% load blog_extra %}
{% for post in posts %}

  <article class="post-list-item">

    <a class="item-full-link"
       href="{% url 'post_detail' year=post.date.year month=post.date|date:'m' day=post.date|date:'d' slug=post.slug %}">
    </a>

    {% if post.image %}
    <span class="item-thumb">
      <img src="{{ post.image }}" alt="">
    </span>
    {% endif %}

    <span class="item-main-group">

      <span class="item-main-top-group">

        {% if post.encrypted_content %}🔐{% endif %}

        <a class="item-title"
           href="{% url 'post_detail' year=post.date.year month=post.date|date:'m' day=post.date|date:'d' slug=post.slug %}">
          {{ post.title }}
        </a>


        <small class="item-column">
          <a href="{% url 'column_index' column=post.column.slug %}">
            {% if post.column.icon %}
              <img src="{{ post.column.icon }}" title="{{ post.column.name }}">
            {% else %}
              {{ post.column.name }}
            {% endif %}
          </a>
        </small>


      </span>

      <div class="item-main-extra-group">
        <small class="item-date">{{ post.date }}</small>
      </div>

      <div class="item-main-bottom-group">
        {{ post.description }}
      </div>
      <span class="item-author">
      <a href="{% url 'author_detail' author_key=post.author.slug %}">
        <img class="item-author-avatar"
          src="{{ post.author.avatar }}"
          alt="{{ post.author.name }}"
          title="{{ post.author.name }}">
        </a>
      </span>

    </span>

  </article>

{% empty %}

{% endfor %}