Sfoglia il codice sorgente

Using post.excerpt in index.html (closes #117)

Barry Clark 11 anni fa
parent
commit
ac1cf36fe0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      index.html

+ 1 - 1
index.html

@@ -9,7 +9,7 @@ layout: default
       <h1><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h1>
 
       <div class="entry">
-        {{ post.content | truncatewords:40}}
+        {{ post.excerpt }}
       </div>
 
       <a href="{{ site.baseurl }}{{ post.url }}" class="read-more">Read More</a>