Favicon serve statici

This commit is contained in:
Claudio Maggioni 2017-05-26 18:53:04 +02:00
parent 12e2dc35e6
commit aec4f7d20d
4 changed files with 5 additions and 3 deletions

View file

@ -17,6 +17,8 @@ func ServiHTML() {
} }
http.HandleFunc("/tabella", handlerRoot("template/tabella.html")) http.HandleFunc("/tabella", handlerRoot("template/tabella.html"))
http.HandleFunc("/", handlerRoot("template/Interfaccia.html")) http.HandleFunc("/", handlerRoot("template/Interfaccia.html"))
fs := http.FileServer(http.Dir("static"))
http.Handle("/static/", http.StripPrefix("/static/", fs))
http.ListenAndServe(":3000", nil) http.ListenAndServe(":3000", nil)
} }

BIN
static/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

View file

@ -1,7 +1,9 @@
<html> <html>
<head> <head>
<title>GoBug</title> <title>Go Bug</title>
<meta charset="UTF-8"> <meta charset="UTF-8">
<link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon">
<link rel="icon" href="/static/favicon.ico" type="image/x-icon">
<link href="https://fonts.googleapis.com/css?family=Hammersmith+One" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Hammersmith+One" rel="stylesheet">
<style type="text/css"> <style type="text/css">
body { body {
@ -33,8 +35,6 @@
main { main {
background-color: #00bbbb; background-color: #00bbbb;
} }
tr, td {
}
td { td {
background: white; background: white;
text-align: center; text-align: center;