Skip to content

Commit

Permalink
Merge pull request #17 from ereinach/patch-2
Browse files Browse the repository at this point in the history
upgrade API for post.preview
  • Loading branch information
Junaid Qadir authored Nov 16, 2018
2 parents e9dd147 + 53a6fa2 commit b2ee3d6
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 b2ee3d6

Please sign in to comment.