mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Inject post.url for anchor links (#18475)
This commit is contained in:
parent
87d7768cc2
commit
5015407e17
@ -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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user