From 08a30ebf855962adbd05bb1b37885d4c27cdf736 Mon Sep 17 00:00:00 2001 From: xoy Date: Sat, 28 Jan 2023 19:56:02 +0100 Subject: [PATCH] funktion aus kommentar entfernt und eingebunden --- func.go | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/func.go b/func.go index 7443858..35e84ca 100644 --- a/func.go +++ b/func.go @@ -143,16 +143,14 @@ func htmlReplacer(input string, activePage string) string { output = strings.ReplaceAll(output, "!TOPICTREFF", htmlElement("h3", "Nächster Topictreff findet in "+string(getNextTopic().days)+" Tagen statt!", "class=\"topic\"")+htmlElement("p", "Am "+getNextTopic().date, "class=\"topic\"")) } - /* - events := getEvents() + events := getEvents() - if len(events) == 0 { - output = strings.ReplaceAll(output, "!EVENTS", htmlNewBanner("Rundgang", "https://www.chaostreff-dortmund.de/rundgang/")) - } else { + if len(events) == 0 { + output = strings.ReplaceAll(output, "!EVENTS", htmlNewBanner("Rundgang", "https://www.chaostreff-dortmund.de/rundgang/")) + } else { - output = strings.ReplaceAll(output, "!EVENTS", htmlNewBanner("Rundgang", "https://www.chaostreff-dortmund.de/rundgang/")) - } - */ + output = strings.ReplaceAll(output, "!EVENTS", htmlNewBanner("Rundgang", "https://www.chaostreff-dortmund.de/rundgang/")) + } output = strings.ReplaceAll(output, "!NEWBANNER", htmlNewBanner("Rundgang", "https://www.chaostreff-dortmund.de/rundgang/"))