diff options
author | Adrian Moreno <adrian@morenomartinez.com> | 2016-06-15 13:19:43 +0300 |
---|---|---|
committer | Adrian Moreno <adrian@morenomartinez.com> | 2016-06-15 13:19:43 +0300 |
commit | 8428bc1a7ee2c9f583c6df9f4d0d1543f946b211 (patch) | |
tree | 7564207e3bf38237e92be2f7ec02db24c105a66c /layouts | |
parent | 096d87dbd3a312127fd93279394cc33f9bcb3f15 (diff) |
Fixes issue with recent blog post in footer
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/footer.html | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 9447751..f539214 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -34,9 +34,7 @@ <h4>Blog</h4> <div class="blog-entries"> - {{ $posts := .Paginate (where .Data.Pages "Type" "post") }} - {{ range first 3 $posts.Pages }} - + {{ range first 3 (where .Site.Pages "Type" "post") }} <div class="item same-height-row clearfix"> <div class="image same-height-always"> <a href="#"> @@ -49,7 +47,7 @@ <h5><a href="{{ .Permalink }}">{{ .Title }}</a></h5> </div> </div> - {{ end }} + {{ end }} </div> <hr class="hidden-md hidden-lg"> |