diff options
author | Zhiming Wang <zmwangx@gmail.com> | 2015-05-05 01:12:44 -0700 |
---|---|---|
committer | Zhiming Wang <zmwangx@gmail.com> | 2015-05-05 01:24:44 -0700 |
commit | 82371e351a35363a8b493d0063e925dce1d27008 (patch) | |
tree | 529e0a656a524a92efa5f8d1fd5751c47bff39d8 /pyblog | |
parent | 015e3b4716a15c674829034bce56b83b323688df (diff) | |
download | my_new_personal_website-82371e351a35363a8b493d0063e925dce1d27008.tar.xz my_new_personal_website-82371e351a35363a8b493d0063e925dce1d27008.zip |
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.
Diffstat (limited to 'pyblog')
-rwxr-xr-x | pyblog | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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": |