Commit b348e71d authored by lunasorcery's avatar lunasorcery
Browse files

remake favicon as svg and add apple-touch-icon

parent 4612e735
......@@ -40,12 +40,22 @@ maybe_mkdir('gen/')
print("generating icons...")
os.system(f"inkscape -w 160 -h 160 -o gen/apple-touch-icon.png favicon.svg")
faviconSizes = [16,32,48]
for size in faviconSizes:
os.system(f"inkscape -w {size} -h {size} -o gen/favicon-{size}.png favicon.svg")
faviconPngs = [f"gen/favicon-{size}.png" for size in faviconSizes]
print(f"convert {' '.join(faviconPngs)} gen/favicon.ico")
for faviconPng in faviconPngs:
print("copying static assets...")
staticAssets = [
<svg width="16" height="16" xmlns="">
<rect x="0" y="0" width="16" height="16" fill="#ca8221"/>
<rect x="1" y="1" width="14" height="14" fill="#f9bb28"/>
<!-- alternate frame design-->
<!--<rect x="0" y="0" width="16" height="16" fill="#ca8221"/>
<rect x="0" y="0" width="16" height="1" fill="#f9bb28"/>
<rect x="0" y="0" width="1" height="16" fill="#f9bb28"/>
<rect x="2" y="2" width="13" height="13" fill="#f9bb28"/>-->
<rect x="2" y="2" width="12" height="12" fill="#313135"/>
<rect x="8" y="9" width="4" height="1" fill="#d6d6e7"/>
<polygon points="3,3 3.666,3 7.166,6.5 3.666,10 3,10 3,9.333 5.833,6.5 3,3.666" fill="#d6d6e7"/>
\ No newline at end of file
......@@ -4,6 +4,9 @@
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="favicon.ico"/>
<link rel="apple-touch-icon" href="apple-touch-icon.png"/>
<link rel="image_src" href="apple-touch-icon.png"/>
<link href="fonts.css?cache={{hash-fonts-css}}" rel="stylesheet"/>
<link href="style.css?cache={{hash-style-css}}" rel="stylesheet"/>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment