add much more metadata to preamble

This commit is contained in:
boyska 2021-08-19 17:14:04 +02:00
parent 82c9fdafef
commit cb1c9b2bd6

View file

@ -103,11 +103,21 @@ class HugoConverter(Converter):
key=uid,
title=talk.decoded("SUMMARY").decode("utf8"),
format="conference",
start=talk.decoded("DTSTART"),
end=talk.decoded("DTEND"),
location=self.talk_room[uid],
duration=int(
(
talk.decoded("DTEND") - talk.decoded("DTSTART")
).total_seconds()
// 60
),
tags=[],
),
buf,
)
buf.write("---\n\n")
# body
if "DESCRIPTION" in talk:
buf.write(talk.decoded("DESCRIPTION").decode("utf8"))