Added blog posts, and improved homepage
This commit is contained in:
12
blog/init.go
Normal file
12
blog/init.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package blog
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func InitHttpHandlers() {
|
||||
prefix := "/blog/"
|
||||
http.HandleFunc(fmt.Sprint(prefix, "{$}"), blogTop)
|
||||
http.HandleFunc(fmt.Sprint(prefix, "{slug}/"), showPost)
|
||||
}
|
Reference in New Issue
Block a user