Skip to content

Commit

Permalink
Popular site bug fix (#130)
Browse files Browse the repository at this point in the history
* Fix for popular site issue

* Add limit
  • Loading branch information
chrisreddington authored Jun 19, 2023
1 parent 770c346 commit d7c8eca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ <h1>Popular</h1>
</div>
<div class="row">
{{ end }}
{{ range where $.Site.RegularPages "RelPermalink" "in" $popular }}
{{ range (where $.Site.RegularPages "RelPermalink" "in" $popular | first 3) }}
<div class="px-0 px-lg-2 mh-100 h-100 col-lg-4 col-sm-12 my-2">
<a href="{{ .Permalink }}" class="card bg-cwc text-white">
<div class="card-body">
Expand Down

0 comments on commit d7c8eca

Please sign in to comment.