This commit is contained in:
Christoph Herb
2024-10-10 13:20:22 +02:00
parent a0c52b2fcd
commit 06f3b2bed0

View File

@@ -42,7 +42,7 @@ func (client *Client) Serve(file string) error {
bytes, err := readToString(dir, r.URL.Path)
if err != nil {
log.Fatal(err)
return
return
}
htmlContent := client.MdToHTML(bytes)
@@ -50,7 +50,7 @@ func (client *Client) Serve(file string) error {
err = serveTemplate(w, htmlStruct{Content: string(htmlContent), Darkmode: client.Dark})
if err != nil {
log.Fatal(err)
return
return
}
} else {
chttp.ServeHTTP(w, r)