diff options
author | Zhiming Wang <zmwangx@gmail.com> | 2015-05-05 19:31:51 -0700 |
---|---|---|
committer | Zhiming Wang <zmwangx@gmail.com> | 2015-05-05 19:32:33 -0700 |
commit | a7a0b2073f30b1d0214c3152998d95e40a39b438 (patch) | |
tree | 00d399fafa500a5cabe652cde27c99c9c293ec87 /pyblog | |
parent | 28b1853fdec7082785dd3f4c96e674c6c2f9d459 (diff) | |
download | my_new_personal_website-a7a0b2073f30b1d0214c3152998d95e40a39b438.tar.xz my_new_personal_website-a7a0b2073f30b1d0214c3152998d95e40a39b438.zip |
add feed icon to footer
Among other fixes and tweaks.
Diffstat (limited to 'pyblog')
-rwxr-xr-x | pyblog | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -2,8 +2,6 @@ """A simple blog generator with Pandoc as backend.""" -# TODO: Feed icon next to the CC icon. - import argparse from contextlib import contextmanager import datetime @@ -360,6 +358,8 @@ def generate_blog(fresh=False, report_total_errors=True): os.mkdir(dstroot, mode=0o755) for name in files: + if name.startswith('.'): + continue extension = name.split(".")[-1] if extension not in ["css", "jpg", "md", "png", "svg", "ico"]: continue @@ -588,6 +588,7 @@ class HTTPServerProcess(multiprocessing.Process): """ os.chdir(self.rootdir) + # pylint: disable=invalid-name HandlerClass = http.server.SimpleHTTPRequestHandler try: httpd = http.server.HTTPServer(("", 8000), HandlerClass) |