mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-01-08 02:40:26 +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("/update-header-links/", handlerUpdateHeaderLinks)
|
||||||
http.HandleFunc("/random/", handlerRandom)
|
http.HandleFunc("/random/", handlerRandom)
|
||||||
http.HandleFunc("/about/", handlerAbout)
|
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.
|
// 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(
|
w.Write([]byte(
|
||||||
`User-agent: *
|
`User-agent: *
|
||||||
Allow: /page/
|
Allow: /page/
|
||||||
|
Allow: /hypha/
|
||||||
Allow: /recent-changes
|
Allow: /recent-changes
|
||||||
Disallow: /
|
Disallow: /
|
||||||
Crawl-delay: 5`))
|
Crawl-delay: 5`))
|
||||||
|
Loading…
Reference in New Issue
Block a user