diff --git a/_config.yml b/_config.yml index 5713f2f652855..78cfdd3b6d823 100644 --- a/_config.yml +++ b/_config.yml @@ -17,6 +17,7 @@ repository : "academicpages/academicpages.github.io" teaser : # filename of teaser fallback teaser image placed in /images/, .e.g. "500x300.png" breadcrumbs : false # true, false (default) words_per_minute : 160 +read_more : "enabled" # if enabled, adds "Read more" links to excerpts comments: provider : # false (default), "disqus", "discourse", "facebook", "google-plus", "staticman", "custom" disqus: diff --git a/_includes/archive-single.html b/_includes/archive-single.html index 259461e7f8682..25784719eb271 100644 --- a/_includes/archive-single.html +++ b/_includes/archive-single.html @@ -46,9 +46,10 @@

{{ site.data.ui-text[site.locale].date_label | default: "Published:" }}

{% endif %} - {% if post.excerpt %} -

{{ post.excerpt | markdownify }} - Read more

+ {% if post.excerpt and site.read_more != 'enabled' %} +

{{ post.excerpt | markdownify }}

+ {% elsif post.excerpt and site.read_more == 'enabled' %} +

{{ post.excerpt | markdownify | remove: '

' | remove: '

' }} Read more

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