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