Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishrb committed Oct 10, 2024
1 parent a0c52b2 commit 06f3b2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/webserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ 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)

// Serve
err = serveTemplate(w, htmlStruct{Content: string(htmlContent), Darkmode: client.Dark})
if err != nil {
log.Fatal(err)
return
return
}
} else {
chttp.ServeHTTP(w, r)
Expand Down

0 comments on commit 06f3b2b

Please sign in to comment.