all repos — homestead @ f58148583a563fca788c4dc9c357a3d2d6e0f49c

Code for my website

homepage: fix rendering with <5 posts

Alan Pearce
commit

f58148583a563fca788c4dc9c357a3d2d6e0f49c

parent

35a67d739dd5cd5cf71e5f37762808568272ede5

1 file changed, 1 insertion(+), 1 deletion(-)

changed files
M domain/content/templates/homepage.godomain/content/templates/homepage.go
@@ -27,7 +27,7 @@ content,
), Section( H2(g.Text("Latest Posts")), - list(vars.Posts[0:5]), + list(vars.Posts[0:min(len(vars.Posts), 5)]), ), Section( H2(g.Text("Elsewhere on the Internet")),