about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--README1
-rw-r--r--sample/blog/subdir/index.html1
-rwxr-xr-xstrike.py2
3 files changed, 4 insertions, 0 deletions
diff --git a/README b/README
index e1418e7..dd6448e 100644
--- a/README
+++ b/README
@@ -16,6 +16,7 @@ Strike has simple goals:
 
 And some stretch goals:
  * Create an extra page listing all generated pages in order of creation date (newest first)
+ * As above, but as an RSS feed
  * Add links to next & previous generated pages
  * Turn the extra page into a flexible component that can be added into any other page
  * Use different templates on different files
diff --git a/sample/blog/subdir/index.html b/sample/blog/subdir/index.html
new file mode 100644
index 0000000..b66efd5
--- /dev/null
+++ b/sample/blog/subdir/index.html
@@ -0,0 +1 @@
+This file in a subdirectory of the input directory should also be processed.
diff --git a/strike.py b/strike.py
index 73c91de..8faeab3 100755
--- a/strike.py
+++ b/strike.py
@@ -56,6 +56,8 @@ def main():
     output_dir.mkdir(parents=True, exist_ok=True)
 
     for file in os.listdir(input_dir):
+        if (input_dir/file).is_dir():
+            continue
         if file in exclusions:
             continue 
         contents, meta = handle_file(input_dir/file)