From ce5bd86c114cc3934bb01e5eb44856998a8f261e 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")