Skip to content

Commit 55310c9

Browse files
committed
add "read more" to post excerpts
1 parent 8f859e7 commit 55310c9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

_includes/archive-single.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ <h2 class="archive__item-title" itemprop="headline">
4747
{% endif %}
4848

4949
{% if post.excerpt %}
50-
<p class="archive__item-excerpt" itemprop="description">{{ post.excerpt | markdownify }}</p>
50+
<p class="archive__item-excerpt" itemprop="description">{{ post.excerpt | markdownify }}
51+
{% if post.collection == 'post' %}
52+
<a href="{{ base_path }}{{ post.url }}" rel="permalink"><i>... Read more</i></a>
53+
{% endif %}
54+
</p>
5155
{% endif %}
5256

5357
{% if post.citation and post.paperurl %}

0 commit comments

Comments
 (0)