funny
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user