Add favicon.

This commit is contained in:
Niels G. W. Serup 2019-10-30 13:38:05 +01:00
parent 1ca0723cc2
commit 46c1e1f3df
3 changed files with 3 additions and 0 deletions

View File

@ -53,6 +53,8 @@ def setup_directory_structure(settings, base_dir, template_dir):
style_new_file = os.path.join(site_new_dir, 'style.css') style_new_file = os.path.join(site_new_dir, 'style.css')
write(style_new_file, style_out) write(style_new_file, style_out)
shutil.copy(os.path.join(template_dir, 'favicon.png'), site_new_dir)
return site_new_dir return site_new_dir
def publish_new_site(site_dir, site_new_dir): def publish_new_site(site_dir, site_new_dir):

View File

@ -4,6 +4,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<title>media.metanohi.name</title> <title>media.metanohi.name</title>
<link href="{style_url}" type="text/css" rel="stylesheet"> <link href="{style_url}" type="text/css" rel="stylesheet">
<link type="image/png" rel="shortcut icon" href="/favicon.png">
</head> </head>
<body> <body>
<div id="body-behind"><div></div></div> <div id="body-behind"><div></div></div>

BIN
template/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB