Allow specifying an editor as well as/instead of an author
[books.alexwlchan.net] / scripts / render_html.py
index c5f96da..048a7fc 100755 (executable)
@@ -70,8 +70,11 @@ def set_git_timestamps():
 class Book:
     slug = attr.ib()
     title = attr.ib()
-    author = attr.ib()
     publication_year = attr.ib()
+
+    author = attr.ib(default="")
+    editor = attr.ib(default="")
+
     cover_image = attr.ib(default="")
     cover_desc = attr.ib(default="")