Commits

Andrey Vlasovskikh committed c9f28cf

Display full contests of the latest post

Truncating it as a text string may result in unbalanced HTML tags.

  • Participants
  • Parent commits dbb605e

Comments (0)

Files changed (1)

           <div class="published">{{ post.date.strftime('%Y-%m-%d') }}</div>
           <h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
           {% if loop.index == 1 %}
-            {% set SIZE = 500 %}
-            {{ post.content | truncate(SIZE) }}
-            {% if post.content | length > SIZE %}
-              <p><a href="{{ post.url }}">Read more...</a></p>
-            {% endif %}
+            {{ post.content }}
           {% endif %}
         </section>
     {% endfor %}