http_server_async: add favicon to template base

This commit is contained in:
Izalia Mae 2021-10-25 07:42:04 -04:00
parent fd6e8856bd
commit 1d6abc61aa
3 changed files with 2 additions and 4 deletions

View file

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

View file

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

View file

@ -64,8 +64,6 @@ def Static(src):
response.body = data
response.content_type = mime
return response
return StaticHandler