diff --git a/website/camweb.go b/website/camweb.go index a4af08c52..7295bf495 100644 --- a/website/camweb.go +++ b/website/camweb.go @@ -369,6 +369,11 @@ var markdownRenderer = blackfriday.HtmlRenderer(markdownHTMLFlags, "", "") // serveFile serves a file from disk, converting any markdown to HTML. func serveFile(rw http.ResponseWriter, req *http.Request, relPath, absPath string) { + if !strings.HasSuffix(absPath, ".html") && !strings.HasSuffix(absPath, ".md") { + http.ServeFile(rw, req, absPath) + return + } + data, err := ioutil.ReadFile(absPath) if err != nil { serveError(rw, req, absPath, err) diff --git a/website/content/code b/website/content/code.html similarity index 100% rename from website/content/code rename to website/content/code.html diff --git a/website/content/community b/website/content/community.html similarity index 100% rename from website/content/community rename to website/content/community.html diff --git a/website/content/contributors b/website/content/contributors.html similarity index 100% rename from website/content/contributors rename to website/content/contributors.html diff --git a/website/content/download b/website/content/download.html similarity index 100% rename from website/content/download rename to website/content/download.html