Sfoglia il codice sorgente

Third time lucky

master
Chris Smith 5 anni fa
parent
commit
d99b5a6dd6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      site/layouts/partials/head.html

+ 1
- 1
site/layouts/partials/head.html Vedi File

@@ -47,7 +47,7 @@
47 47
 
48 48
         <section id="posts">
49 49
           <ul>
50
-            {{ range first 3 .Site.Pages }}
50
+            {{ range first 3 (where site.RegularPages "Type" "post") }}
51 51
               <li class="recent">
52 52
                 <a href="{{ .RelPermalink }}">{{ .Title }}</a>
53 53
                 <p>{{ .Date.Format "Jan 2, 2006" }}</p>

Loading…
Annulla
Salva