funktion aus kommentar entfernt und eingebunden

This commit is contained in:
xoy 2023-01-28 19:56:02 +01:00
parent eb8068d6fb
commit c0fa7bc2f6
1 changed files with 6 additions and 8 deletions

View File

@ -143,7 +143,6 @@ 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\"")) 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 { if len(events) == 0 {
@ -152,7 +151,6 @@ func htmlReplacer(input string, activePage string) string {
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/")) output = strings.ReplaceAll(output, "!NEWBANNER", htmlNewBanner("Rundgang", "https://www.chaostreff-dortmund.de/rundgang/"))