diff --git a/templates/browse.gohtml b/templates/browse.gohtml
index 4a2d10b..bb38b52 100644
--- a/templates/browse.gohtml
+++ b/templates/browse.gohtml
@@ -20,19 +20,11 @@
{{else}}
- {{range $i, $anime := .Animes}}
- {{$isThreshold := eq (add $i 1) (sub (len $.Animes) 8)}}
- {{if and $isThreshold $.HasNextPage}}
-
- {{template "anime_card" dict "Anime" . "WithActions" true "IsWatchlist" (index $.WatchlistMap .MalID)}}
-
- {{else}}
- {{template "anime_card" dict "Anime" . "WithActions" true "IsWatchlist" (index $.WatchlistMap .MalID)}}
- {{end}}
+ {{range .Animes}}
+ {{template "anime_card" dict "Anime" . "WithActions" true "IsWatchlist" (index $.WatchlistMap .MalID)}}
+ {{end}}
+ {{if .HasNextPage}}
+ {{template "browse_sentinel" .}}
{{end}}
{{end}}
@@ -41,19 +33,18 @@
{{end}}
{{define "anime_card_scroll"}}
- {{$count := len .Animes}}
- {{range $i, $anime := .Animes}}
- {{$isThreshold := eq (add $i 1) (sub $count 8)}}
- {{if and $isThreshold $.HasNextPage}}
-
- {{template "anime_card" dict "Anime" $anime "WithActions" true "IsWatchlist" (index $.WatchlistMap $anime.MalID)}}
-
- {{else}}
- {{template "anime_card" dict "Anime" $anime "WithActions" true "IsWatchlist" (index $.WatchlistMap $anime.MalID)}}
- {{end}}
+ {{range .Animes}}
+ {{template "anime_card" dict "Anime" . "WithActions" true "IsWatchlist" (index $.WatchlistMap .MalID)}}
+ {{end}}
+ {{if .HasNextPage}}
+ {{template "browse_sentinel" .}}
{{end}}
{{end}}
+
+{{define "browse_sentinel"}}
+
+{{end}}