Browse Source

Add favicon.

master
Niels G. W. Serup 1 year ago
parent
commit
46c1e1f3df
3 changed files with 3 additions and 0 deletions
  1. +2
    -0
      scripts/generate-pages.py
  2. +1
    -0
      template/base.html
  3. BIN
      template/favicon.png

+ 2
- 0
scripts/generate-pages.py 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')
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
- 0
template/base.html View File

@ -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 View File

Before After
Width: 32  |  Height: 32  |  Size: 1.2 KiB

Loading…
Cancel
Save