commit 71c14cae9d8bd30f145ebb67b708f36794342a44 Author: Severin Kaderli Date: Sun Jan 16 18:45:00 2022 +0100 Initial commit Signed-off-by: Severin Kaderli diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b67c661 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.output/ diff --git a/data.json b/data.json new file mode 100644 index 0000000..ec6a76c --- /dev/null +++ b/data.json @@ -0,0 +1,58 @@ +{ + "books": [ + { + "title": "The Bands of Mourning", + "author": "Brandon Sanderson", + "year": 2016, + "pages": 336, + "isbn": "9781466862678", + "startDate": "2022-01-14", + "endDate": null + }, + { + "title": "Shadows of Self", + "author": "Brandon Sanderson", + "year": 2015, + "pages": 384, + "isbn": "9781466862661", + "startDate": "2020-02-06", + "endDate": "2022-01-13" + }, + { + "title": "The Alloy of Law", + "author": "Brandon Sanderson", + "year": 2011, + "pages": 336, + "isbn": "9781429994897", + "startDate": "2020-01-30", + "endDate": "2020-02-06" + }, + { + "title": "The Hero of Ages", + "author": "Brandon Sanderson", + "year": 2008, + "pages": 576, + "isbn": "9781429960304", + "startDate": "2020-01-23", + "endDate": "2020-01-29" + }, + { + "title": "The Well of Ascension", + "author": "Brandon Sanderson", + "year": 2007, + "pages": 592, + "isbn": "9781429961813", + "startDate": "2018-08-01", + "endDate": "2020-01-23" + }, + { + "title": "The Final Empire", + "author": "Brandon Sanderson", + "year": 2006, + "pages": 544, + "isbn": "9781429914567", + "startDate": "2016-09-18", + "endDate": "2018-08-01" + } + ] +} diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..cd9254d --- /dev/null +++ b/templates/index.html @@ -0,0 +1,48 @@ + + + + + + + + + + +
+

My book list

+

This page lists all books that I've read since I started tracking them.

+
+ +
+ + + + + + + + + + + + + {% for book in books %} + + + + + + + + + {% endfor %} + +
TitleAuthorYearPagesStartedFinished
{{book.title}}{{book.author}}{{book.year}}{{book.pages}}{{book.startDate}}{{book.endDate}}
+
+ + + + +