mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 16:27:19 +00:00
Fix post excerpts
This commit is contained in:
parent
3055107296
commit
32ab407c3a
@ -22,11 +22,13 @@
|
||||
{% endunless %}
|
||||
</header>
|
||||
|
||||
{% if post.excerpted and index %}
|
||||
<div class="entry-content clearfix">
|
||||
{{ post.excerpt }}
|
||||
<a class="btn pull-right" href="{{ root_url }}{{ post.url }}#read-more">{{ site.excerpt_link }}</a>
|
||||
</div>
|
||||
{% if index %}
|
||||
<div class="entry-content clearfix">
|
||||
{{ post.excerpt }}
|
||||
{% if post.content contains site.excerpt_separator %}
|
||||
<a class="btn pull-right" href="{{ post.url }}#read-more">{{ site.excerpt_link }}</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% else %}
|
||||
{{ post.content | replace: site.excerpt_separator, '<a name="read-more"></a>' }}
|
||||
{% endif %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user