diff --git a/build/index.py b/build/index.py index febbc86..6a86af3 100644 --- a/build/index.py +++ b/build/index.py @@ -18,7 +18,7 @@ if len(sys.argv) < 2: # posts are arguments from index 1 onwards posts = sys.argv[1:] -dir_pattern = re.compile("(.+)/(blog\/.+\.html)") +dir_pattern = re.compile("(.+)\/(\d{4}\/\d+\/\d+\/.+\.html)") path_pattern = re.compile("(.+)\/(\d{4})\/(\d{1,2})\/(\d{1,2})\/(.+).html") title_pattern = re.compile("

(.+)

")