Skip to content

Commit

Permalink
upgrade API for post.preview
Browse files Browse the repository at this point in the history
get_preview is deprecated
  • Loading branch information
ereinach authored Nov 13, 2018
1 parent a2a3a2e commit 53a6fa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/pages/tease-post.twig
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{% extends "tease.twig" %}
{% block content %}
<h2 class="h2"><a href="{{post.link}}">{{post.title}}</a></h2>
<p>{{post.get_preview(25)}}</p>
<p>{{post.preview(25)}}</p>

{% if post.thumbnail.src %}
<img src="{{post.thumbnail.src}}" />
{% endif %}
{% endblock %}
{% endblock %}

0 comments on commit 53a6fa2

Please sign in to comment.