Skip to content

Commit

Permalink
testing read more
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeberv committed Sep 3, 2024
1 parent 35ef058 commit 89d8e34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
22 changes: 4 additions & 18 deletions _includes/archive-single-pubs.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,25 +84,11 @@ <h2 class="archive__item-title" itemprop="headline">
<p class="page__meta"><i class="fa fa-clock" aria-hidden="true"></i> {% include read-time.html %}</p>
{% endif %}

{% if post.excerpt and post.collection == 'research' and site.read_more != 'enabled' %}
{% if site.read_more == 'enabled' or page.read_more == 'enabled' %}
<p class="archive__item-excerpt" itemprop="description">
<a href="{{ base_path }}{{ post.url }}" rel="permalink">
<div class="container">
{{ post.excerpt }}
<div class="overlay">
</div>
</div>
</a>
</p>
{% elsif post.excerpt and site.read_more != 'enabled' %}
<p class="archive__item-excerpt" itemprop="description">{{ post.excerpt | markdownify }}</p>
{% elsif post.excerpt and site.read_more == 'enabled' %}
<p class="archive__item-excerpt" itemprop="description">
<p>{{ post.excerpt | markdownify | remove: '<p>' | remove: '</p>' }}
<strong>
<a href="{{ base_path }}{{ post.url }}" rel="permalink"> Read more</a>
</strong>
</p>
<strong>
<a href="{{ base_path }}{{ post.url }}" rel="permalink"> Read more</a>
</strong>
</p>
{% endif %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "3rd Joint Congress on Evolutionary Biology"
date: 2024-08-01
date: 2024-07-30
layout: archive
author_profile: true
excerpt_separator: "<!--news-excerpt-->"
Expand Down

0 comments on commit 89d8e34

Please sign in to comment.