mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Inject post.url for anchor links (#18475)
This commit is contained in:
parent
87d7768cc2
commit
5015407e17
@ -24,7 +24,8 @@
|
|||||||
|
|
||||||
{% if index %}
|
{% if index %}
|
||||||
<div class="entry-content clearfix">
|
<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 %}
|
{% if post.content contains site.excerpt_separator %}
|
||||||
<a class="btn pull-right" href="{{ post.url }}#read-more">{{ site.excerpt_link }}</a>
|
<a class="btn pull-right" href="{{ post.url }}#read-more">{{ site.excerpt_link }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user