Skip to content

Commit

Permalink
Remove "##Abstract" from excerpts
Browse files Browse the repository at this point in the history
  • Loading branch information
yzyzsun committed Jul 23, 2021
1 parent 6b16770 commit 8b40359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Expand Up @@ -87,7 +87,7 @@ <h2 class="my-mini-heading">{{ site.posts_btn }}</h2>
<p class="my-item">
<a href="{{ post.url | prepend: site.baseurl }}" class="my-link">{{ post.title }}</a><br>
<span class="my-item-sub">{{ post.date | date: "%b %-d, %Y" }}</span><br>
{{ post.content | strip_html | truncatewords: 20 }}
{{ post.content | remove_first: "<h2 id=\"abstract\">Abstract</h2>" | strip_html | truncatewords: 30 }}
</p>
</li>
{% endfor %}
Expand Down

0 comments on commit 8b40359

Please sign in to comment.