From 9dede771c595c7f8f9b836f2d1cafc8d358f2475 Mon Sep 17 00:00:00 2001 From: xoy Date: Sun, 29 Jan 2023 19:02:40 +0100 Subject: [PATCH] fehlerbehebung --- html.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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")