This commit is contained in:
2026-06-26 21:43:14 +03:00
parent 98d85ecbf5
commit 83f9707b00

View File

@@ -270,7 +270,43 @@ func RegisterRoutes(mux *http.ServeMux, contentDir string) error {
// robots.txt
mux.HandleFunc("/robots.txt", func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "text/plain")
w.Write([]byte("User-agent: *\nAllow: /\n\nSitemap: https://chaosmith.systems/sitemap.xml\n"))
w.Write([]byte(`User-agent: *
Allow: /
Sitemap: https://chaosmith.systems/sitemap.xml
+---------------------+
| |
| |
| |
| _ |
| .' '. |
| .' '. |
| .' '. |
| .' '. |
|.' ,-------. '.|
| ,' . '. |
| ( ( ) ) |
| '. ' ,' |
| '-------' |
| |
| +---------+ |
| | AGIO | |
| | RPC | |
|\ +---------+ /|
| \ .' |
| '. / |
| \ / |
| \ / |
| \ .' |
| '. / |
| \ / |
| - |
| |
| |
+---------------------+
`))
})
log.Printf("blog: loaded %d post(s) from %s, mounted at /blog/", store.Count(), contentDir)