aboutsummaryrefslogtreecommitdiff
path: root/pyblog
diff options
context:
space:
mode:
authorZhiming Wang <zmwangx@gmail.com>2015-05-05 01:12:44 -0700
committerZhiming Wang <zmwangx@gmail.com>2015-05-05 01:24:44 -0700
commit82371e351a35363a8b493d0063e925dce1d27008 (patch)
tree529e0a656a524a92efa5f8d1fd5751c47bff39d8 /pyblog
parent015e3b4716a15c674829034bce56b83b323688df (diff)
downloadmy_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-xpyblog4
1 files changed, 2 insertions, 2 deletions
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":