Inject post.url for anchor links (#18475)

This commit is contained in:
Joakim Sørensen 2021-07-12 11:17:52 +02:00 committed by GitHub
parent 87d7768cc2
commit 5015407e17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,8 @@
{% if index %}
<div class="entry-content clearfix">
{{ post.excerpt }}
{% assign blog_post_link = 'href="' | append: post.url | append:"#" %}
{{ post.excerpt | replace: 'href="#', blog_post_link }}
{% if post.content contains site.excerpt_separator %}
<a class="btn pull-right" href="{{ post.url }}#read-more">{{ site.excerpt_link }}</a>
{% endif %}