fehlerbehebung
This commit is contained in:
parent
9dede771c5
commit
fee91c838a
4
html.go
4
html.go
|
@ -84,8 +84,8 @@ func htmlReplacer(input string, activePage string) string {
|
||||||
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\""))
|
||||||
tempC := strings.Split(tempB, "!SPLIT")
|
//tempC := strings.Split(tempB, "!SPLIT")
|
||||||
output = strings.ReplaceAll(output, "!NEXTEVENTS", htmlElement("div", tempC[0]+tempC[1]+tempC[2]+tempC[3], "class=\"eventList\""))
|
//output = strings.ReplaceAll(output, "!NEXTEVENTS", htmlElement("div", tempC[0]+tempC[1]+tempC[2]+tempC[3], "class=\"eventList\""))
|
||||||
}
|
}
|
||||||
|
|
||||||
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/"))
|
||||||
|
|
14
main.go
14
main.go
|
@ -43,19 +43,19 @@ func handler() {
|
||||||
//events
|
//events
|
||||||
handleEvents()
|
handleEvents()
|
||||||
|
|
||||||
//pages
|
//images
|
||||||
logger("----------------HANDLE PAGES----------------")
|
handleImages()
|
||||||
httpHandleFunc("", "./web/pages/home.html", "text/html")
|
|
||||||
handleFilesInFolder("", "./web/pages/", true)
|
|
||||||
logger("----------------HANDLE END----------------")
|
|
||||||
|
|
||||||
//styles
|
//styles
|
||||||
logger("----------------HANDLE STYLES----------------")
|
logger("----------------HANDLE STYLES----------------")
|
||||||
handleFilesInFolder("style/", "./web/styles/", false)
|
handleFilesInFolder("style/", "./web/styles/", false)
|
||||||
logger("----------------HANDLE END----------------")
|
logger("----------------HANDLE END----------------")
|
||||||
|
|
||||||
//images
|
//pages
|
||||||
handleImages()
|
logger("----------------HANDLE PAGES----------------")
|
||||||
|
httpHandleFunc("", "./web/pages/home.html", "text/html")
|
||||||
|
handleFilesInFolder("", "./web/pages/", true)
|
||||||
|
logger("----------------HANDLE END----------------")
|
||||||
}
|
}
|
||||||
|
|
||||||
func handleEvents() {
|
func handleEvents() {
|
||||||
|
|
Loading…
Reference in New Issue