diff --git a/articles/article.template.html b/articles/article.template.html index fb094a0..f61ef19 100644 --- a/articles/article.template.html +++ b/articles/article.template.html @@ -1,4 +1,5 @@ + {% block head %} diff --git a/generate.ignore.py b/generate.ignore.py index 0822e31..ddfbdf1 100644 --- a/generate.ignore.py +++ b/generate.ignore.py @@ -20,6 +20,7 @@ env = Environment( # walk the source directory and make all the corresponding files into finalized +# article template is used for all .article.html files article_template = env.get_template("articles/article.template.html") for path_to_source in source.glob("**/*"): @@ -35,6 +36,8 @@ for path_to_source in source.glob("**/*"): pass elif ".article.html" in str(path_to_source): + # all .article.html files are transformed into a folder of the same name and then rendered with the template at index.html + folder_name = path_to_output.parent / path_to_output.name.replace(".article.html","") os.makedirs(folder_name, exist_ok=True) # make the folder /var/www/shoofle.net/articles/circle_script