fehlerbehebung

This commit is contained in:
xoy 2023-01-29 19:02:40 +01:00
parent d74fa09743
commit ce5bd86c11
1 changed files with 1 additions and 3 deletions

View File

@ -80,10 +80,8 @@ func htmlReplacer(input string, activePage string) string {
tempA = htmlElement("h2", htmlClean(Event.title), "title") tempA = htmlElement("h2", htmlClean(Event.title), "title")
tempA += htmlElement("p", htmlClean(Event.date), "date") tempA += htmlElement("p", htmlClean(Event.date), "date")
tempA += htmlElement("p", htmlClean(Event.description), "desc") 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 += 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\"")) output = strings.ReplaceAll(output, "!EVENTS", htmlElement("div", strings.ReplaceAll(tempB, "!SPLIT", ""), "class=\"eventList\""))
tempC := strings.Split(tempB, "!SPLIT") tempC := strings.Split(tempB, "!SPLIT")