Add theme switcher

This commit is contained in:
arnaucube
2020-05-29 00:01:47 +02:00
parent f4a55d1f1e
commit c905e2a5b3
6 changed files with 145 additions and 8 deletions

View File

@@ -68,6 +68,7 @@ func getPage(w http.ResponseWriter, r *http.Request) {
if strings.Split(path, ".")[1] != "md" {
http.ServeFile(w, r, path)
return
}
content, err := fileToHTML(path)