- Timestamp:
- Apr 26, 2023, 12:40:20 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cmd/aya/main.go
r61 r62 1 // $TheSupernovaDuo: cmd/aya/main.go,v 0.5.x 2023/4/26 8:49:6 yakumo_izuru Exp $ 1 2 package main 2 3 … … 303 304 func build(path string, w io.Writer, vars Vars) error { 304 305 ext := filepath.Ext(path) 305 if ext == ".md" || ext == ".mkd" {306 if ext == ".md" || ext == ".mkd" || ext == ".markdown" { 306 307 return buildMarkdown(path, w, vars) 307 308 } else if ext == ".html" || ext == ".xml" { … … 364 365 rootdir := http.Dir(PUBDIR) 365 366 http.Handle("/", http.FileServer(rootdir)) 367 log.Printf("Serving %v at port 8000, see http://localhost:8000", rootdir) 366 368 log.Fatal(http.ListenAndServe(":8000", nil)) 367 369 }
Note:
See TracChangeset
for help on using the changeset viewer.