Skip to content

Commit

Permalink
Show recent posts (hugo 0.59). (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanfox1985 authored Oct 25, 2019
1 parent 0fc3492 commit d6f8b59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/recent_posts.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h2>{{ .Site.Params.recent_posts.title }}</h2>

<div class="row">

{{ $posts := .Paginate (where .Data.Pages "Type" "blog") }}
{{ $posts := .Paginate (where .Site.RegularPages "Type" "blog") }}
{{ range first 4 $posts.Pages }}
<div class="col-md-3 col-sm-6">
<div class="box-image-text blog">
Expand Down

0 comments on commit d6f8b59

Please sign in to comment.