Browse Source

Add favicon.

master
Niels G. W. Serup 2 years ago
parent
commit
46c1e1f3df
  1. 2
      scripts/generate-pages.py
  2. 1
      template/base.html
  3. BIN
      template/favicon.png

2
scripts/generate-pages.py

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

1
template/base.html

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

BIN
template/favicon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Loading…
Cancel
Save