# HG changeset patch # User yakumo.izuru # Date 1682512820 0 # Node ID e8f54da51137f61901dc8dc136b9da37b3c863c3 # Parent cf7277e42ece60140b69010aa59df130d176dcc4 Be more verbose with servePubDir(), add an additional markdown file extension, granted it's rare for someone to use it... Signed-off-by: Izuru Yakumo diff -r cf7277e42ece -r e8f54da51137 cmd/aya/main.go --- a/cmd/aya/main.go Fri Apr 21 23:06:28 2023 +0000 +++ b/cmd/aya/main.go Wed Apr 26 12:40:20 2023 +0000 @@ -1,3 +1,4 @@ +// $TheSupernovaDuo: cmd/aya/main.go,v 0.5.x 2023/4/26 8:49:6 yakumo_izuru Exp $ package main import ( @@ -302,7 +303,7 @@ func build(path string, w io.Writer, vars Vars) error { ext := filepath.Ext(path) - if ext == ".md" || ext == ".mkd" { + if ext == ".md" || ext == ".mkd" || ext == ".markdown" { return buildMarkdown(path, w, vars) } else if ext == ".html" || ext == ".xml" { return buildHTML(path, w, vars) @@ -363,6 +364,7 @@ func servePubDir() { rootdir := http.Dir(PUBDIR) http.Handle("/", http.FileServer(rootdir)) + log.Printf("Serving %v at port 8000, see http://localhost:8000", rootdir) log.Fatal(http.ListenAndServe(":8000", nil)) }