mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-10-30 11:46:16 +00:00
Reintroduce favicons
Store it at the static folder, like before. I created a new config field for that originally, but then I understood that it is to be thrown away anyway when the Structure comes, so decided to keep it the old way.
This commit is contained in:
parent
d0c3225db5
commit
2ce25811af
@ -21,6 +21,9 @@ func initStuff() {
|
||||
http.HandleFunc("/update-header-links/", handlerUpdateHeaderLinks)
|
||||
http.HandleFunc("/random/", handlerRandom)
|
||||
http.HandleFunc("/about/", handlerAbout)
|
||||
http.HandleFunc("/favicon.ico", func(w http.ResponseWriter, rq *http.Request) {
|
||||
http.Redirect(w, rq, "/static/favicon.ico", http.StatusSeeOther)
|
||||
})
|
||||
}
|
||||
|
||||
// handlerList shows a list of all hyphae in the wiki in random order.
|
||||
|
@ -65,6 +65,7 @@ func handlerRobotsTxt(w http.ResponseWriter, rq *http.Request) {
|
||||
w.Write([]byte(
|
||||
`User-agent: *
|
||||
Allow: /page/
|
||||
Allow: /hypha/
|
||||
Allow: /recent-changes
|
||||
Disallow: /
|
||||
Crawl-delay: 5`))
|
||||
|
Loading…
Reference in New Issue
Block a user