http_server_async: add favicon to template base
This commit is contained in:
parent
fd6e8856bd
commit
1d6abc61aa
|
@ -2,6 +2,7 @@
|
|||
%html
|
||||
%head
|
||||
%title << {{cfg.title}}: {{page}}
|
||||
%link(rel='shortcut icon', type='image/png', href='/framework/static/icon64.png')
|
||||
%link(rel='stylesheet' type='text/css' href='/framework/style.css')
|
||||
%link(rel='manifest' href='/framework/manifest.json')
|
||||
%meta(charset='UTF-8')
|
||||
|
|
|
@ -50,9 +50,8 @@ class Application:
|
|||
|
||||
self.template.add_search_path(frontend)
|
||||
self.add_view(Manifest)
|
||||
self.add_view(Robots)
|
||||
#self.add_view(Robots)
|
||||
self.add_view(Style)
|
||||
self.add_static('/framework/favicon.ico', frontend.join('static/icon64.png'))
|
||||
self.add_static('/framework/static/', frontend.join('static'))
|
||||
|
||||
else:
|
||||
|
|
|
@ -64,8 +64,6 @@ def Static(src):
|
|||
response.body = data
|
||||
response.content_type = mime
|
||||
|
||||
return response
|
||||
|
||||
return StaticHandler
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue