From 82371e351a35363a8b493d0063e925dce1d27008 Mon Sep 17 00:00:00 2001 From: Zhiming Wang <zmwangx@gmail.com> Date: Tue, 5 May 2015 01:12:44 -0700 Subject: handle navigation button and favicons Note that I'm using an <embed> tag with the svg because if wrapped in <img>, the svg won't render on Safari. After using the <embed> tag, the svg renders on all four major browsers on OS X (Chrome, Safari, Firefox, Opera), and it looks nice on all three but Firefox, in which case it's crappy as fuck. --- pyblog | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pyblog') diff --git a/pyblog b/pyblog index 0b7b3d26..271a4684 100755 --- a/pyblog +++ b/pyblog @@ -304,7 +304,7 @@ def generate(fresh=False): for name in files: extension = name.split(".")[-1] - if extension not in ["css", "jpg", "md", "png", "svg"]: + if extension not in ["css", "jpg", "md", "png", "svg", "ico"]: continue relpath = os.path.join(relroot, name) @@ -320,7 +320,7 @@ def generate(fresh=False): anything_modified = True if srcpath == INDEXMD: continue # index will be processed separately - if extension in ["css", "jpg", "png", "svg"]: + if extension in ["css", "jpg", "png", "svg", "ico"]: sys.stderr.write("copying %s\n" % relpath) shutil.copy(srcpath, dstpath) elif extension == "md": -- cgit v1.2.1