Skip to content

Commit 5dc101f

Browse files
authored
Conditional rendering of content based on post type
1 parent 53e9341 commit 5dc101f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

_includes/article.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,12 @@
2929
</div>
3030
</header>
3131

32-
{{ content }}
33-
32+
{% if is_single %}
33+
{{ content }}
34+
{% else %}
35+
{{ post.excerpt }} <a href="{{ post.url }}">...weiterlesen</a>
36+
{% endif %}
37+
3438
{% if is_single and site.disqus_username %}
3539
<section>
3640
<h3>Kommentare</h3>

0 commit comments

Comments
 (0)