diff --git a/html.go b/html.go
index 39edfb6..5e114ea 100644
--- a/html.go
+++ b/html.go
@@ -80,10 +80,8 @@ func htmlReplacer(input string, activePage string) string {
tempA = htmlElement("h2", htmlClean(Event.title), "title")
tempA += htmlElement("p", htmlClean(Event.date), "date")
tempA += htmlElement("p", htmlClean(Event.description), "desc")
- if i > 0 {
- tempB += "!SPLIT"
- }
tempB += htmlLinkElement(htmlElement("div", tempA, ""), "event/"+strconv.Itoa(Event.id), false, "class=\"event\"")
+ tempB += "!SPLIT"
}
output = strings.ReplaceAll(output, "!EVENTS", htmlElement("div", strings.ReplaceAll(tempB, "!SPLIT", ""), "class=\"eventList\""))
tempC := strings.Split(tempB, "!SPLIT")