Browse Source

Merge pull request #63 from lrdodge/feature/bug-html-in-post-excerpts

Change order of post excerpt processing
master
Dean Attali 8 years ago
committed by GitHub
parent
commit
15765089d9
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      index.html

+ 5
- 5
index.html View File

@ -9,23 +9,23 @@ subtitle: This is where I will tell my friends way too much about me
<article class="post-preview">
<a href="{{ post.url | prepend: site.baseurl }}">
<h2 class="post-title">{{ post.title }}</h2>
{% if post.subtitle %}
<h3 class="post-subtitle">
{{ post.subtitle }}
</h3>
{% endif %}
{% endif %}
</a>
<p class="post-meta">
Posted on {{ post.date | date: "%B %-d, %Y" }}
</p>
<div class="post-entry">
{{ post.content | truncatewords: 50 | strip_html | xml_escape}}
{{ post.content | strip_html | xml_escape | truncatewords: 50 }}
<a href="{{ post.url | prepend: site.baseurl }}" class="post-read-more">[Read&nbsp;More]</a>
</div>
</article>
{% endfor %}
</div>


|||||||
x
 
000:0
Loading…
Cancel
Save