1
0
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:
Timur Ismagilov 2021-06-16 01:35:24 +05:00
parent d0c3225db5
commit 2ce25811af
2 changed files with 4 additions and 0 deletions

View File

@ -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.

View File

@ -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`))