Added blog posts, and improved homepage

This commit is contained in:
2025-05-23 18:12:16 +02:00
parent 99ab5d388c
commit 847fb6491d
28 changed files with 721 additions and 132 deletions

12
blog/init.go Normal file
View 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)
}