Skip to content

Commit 0c8d65e

Browse files
authored
Merge pull request academicpages#27 from academicpages/read-more
add "read more" to post excerpts
2 parents 8f859e7 + 55310c9 commit 0c8d65e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

_includes/archive-single.html

+5-1
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)