fehlerbehebung
This commit is contained in:
parent
758ae24fc6
commit
b6fa1f44e4
2
html.go
2
html.go
|
@ -80,7 +80,7 @@ func htmlReplacer(input string, activePage string) string {
|
||||||
tempA = htmlElement("p", htmlClean(Event.date), "class=\"date\"")
|
tempA = htmlElement("p", htmlClean(Event.date), "class=\"date\"")
|
||||||
tempA += htmlElement("h2", htmlClean(Event.title), "class=\"title\"")
|
tempA += htmlElement("h2", htmlClean(Event.title), "class=\"title\"")
|
||||||
tempA += htmlElement("p", htmlClean(Event.description), "class=\"desc\"")
|
tempA += htmlElement("p", htmlClean(Event.description), "class=\"desc\"")
|
||||||
tempB += htmlLinkElement(htmlElement("div", tempA, "class=\"event\""), "event/"+strconv.Itoa(Event.id), false, "class=\"event\"")
|
tempB += htmlLinkElement(htmlElement("div", tempA, "class=\"event\""), "/event/"+strconv.Itoa(Event.id), false, "class=\"event\"")
|
||||||
tempB += "!SPLIT"
|
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\""))
|
||||||
|
|
Loading…
Reference in New Issue