Skip to content

Commit bc9f424

Browse files
Makara Csabanielsenramon
authored andcommitted
feat(excerpt): excerpt functionality on index
1 parent 8a0597a commit bc9f424

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

index.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ <h5>
1313
{% include svg-icon.html icon="arrow-right" %}
1414
</h5>
1515
</a>
16-
<p>{{ post.description }}</p>
16+
<p>
17+
{% if post.description %}
18+
{{ post.description }}
19+
{% elsif post.excerpt %}
20+
{{ post.excerpt }}
21+
{% endif %}
22+
</p>
1723
<div class="article-list-footer">
1824
<span class="article-list-date">
1925
{{ post.date | date: "%B %-d, %Y" }}

0 commit comments

Comments
 (0)