aboutsummaryrefslogtreecommitdiff
path: root/pyblog
diff options
context:
space:
mode:
authorZhiming Wang <zmwangx@gmail.com>2015-05-05 19:31:51 -0700
committerZhiming Wang <zmwangx@gmail.com>2015-05-05 19:32:33 -0700
commita7a0b2073f30b1d0214c3152998d95e40a39b438 (patch)
tree00d399fafa500a5cabe652cde27c99c9c293ec87 /pyblog
parent28b1853fdec7082785dd3f4c96e674c6c2f9d459 (diff)
downloadmy_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-xpyblog5
1 files changed, 3 insertions, 2 deletions
diff --git a/pyblog b/pyblog
index a1c0a848..cab2972c 100755
--- a/pyblog
+++ b/pyblog
@@ -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)