mirror of
https://github.com/samsonjs/retrogit.git
synced 2026-03-25 09:25:49 +00:00
Add favicon.
This commit is contained in:
parent
a9e17ee600
commit
f8657e9992
6 changed files with 10 additions and 0 deletions
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -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
BIN
app/static/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
|
|
@ -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
BIN
assets/favicon16.psd
Normal file
Binary file not shown.
BIN
assets/favicon32.psd
Normal file
BIN
assets/favicon32.psd
Normal file
Binary file not shown.
Loading…
Reference in a new issue