Skip to content

Commit

Permalink
limit highlights on home to 3 (#706)
Browse files Browse the repository at this point in the history
  • Loading branch information
gvn authored Aug 31, 2017
1 parent a25d5b7 commit 435d030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/pug/views/home.pug
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ block content
.mt-5!=data.highlights[0].footer

.col-md-6.mb-5
- for (let i = 1; i < data.highlights.length; i++)
- for (let i = 1; i < (data.highlights.length > 3 ? 3 : data.highlights.length); i++)
+highlight(data.highlights[i])
- if (i !== data.highlights.length - 1)
hr
Expand Down

0 comments on commit 435d030

Please sign in to comment.