fehlerbehebung
This commit is contained in:
parent
3b04f26ecf
commit
9dede771c5
4
html.go
4
html.go
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue