Add favicon.

This commit is contained in:
Mihai Parparita 2014-12-13 22:33:18 -08:00
parent a9e17ee600
commit f8657e9992
6 changed files with 10 additions and 0 deletions

View file

@ -308,6 +308,12 @@ func loadTemplates() (templates map[string]*Template) {
}
return baseUrl + url.String(), nil
},
"absoluteUrlForPath": func(path string) string {
if appengine.IsDevAppServer() {
return "http://localhost:8080" + path
}
return "https://www.retrogit.com" + path
},
"style": func(names ...string) (result template.CSS) {
for _, name := range names {
result += styles[name]

View file

@ -6,6 +6,9 @@ api_version: go1
handlers:
- url: /static
static_dir: static
- url: /favicon.ico
static_files: static/favicon.ico
upload: static/favicon.ico
- url: /digest/cron
script: _go_app
login: admin

BIN
app/static/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -4,6 +4,7 @@
<meta charset="utf-8">
<title>RetroGit {{template "title" .}}</title>
<meta name="viewport" content="initial-scale=1 maximum-scale=1 user-scalable=no">
<link rel="shortcut icon" sizes="16x16 32x32" href="{{absoluteUrlForPath "/favicon.ico"}}">
<link rel="stylesheet" href="/static/main.css">
<link rel="stylesheet" href="/static/octicons/octicons.css">
</head>

BIN
assets/favicon16.psd Normal file

Binary file not shown.

BIN
assets/favicon32.psd Normal file

Binary file not shown.