From 7be5289bc49e5602f7008cc9cdb83316d43290af Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Tue, 8 Dec 2015 10:42:00 +0100 Subject: [PATCH] [enh] do index.html --- prosopopoee | 2 ++ templates/index.html | 46 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/prosopopoee b/prosopopoee index 89de881..ea06e63 100755 --- a/prosopopoee +++ b/prosopopoee @@ -82,6 +82,8 @@ def main(): front_page_galleries_cover = sorted(front_page_galleries_cover, key=lambda x: x["date"]) + open(os.path.join("build", "index.html"), "w").write(index_template.render(settings=settings, galleries=front_page_galleries_cover, helpers=TemplateFunctions(os.getcwd(), os.path.join(os.getcwd(), "build"))).encode("Utf-8")) + if __name__ == '__main__': main() diff --git a/templates/index.html b/templates/index.html index e69de29..41b9b20 100644 --- a/templates/index.html +++ b/templates/index.html @@ -0,0 +1,46 @@ + + + + + + + + + {{ settings.title }} + + + + + + +
+ {% for galleries_line in galleries|batch(2) %} + + {% endfor %} +
+ +

.

+ + + +