fehlerbehebung
This commit is contained in:
parent
7da8af13fd
commit
00b78fcde1
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