add much more metadata to preamble
This commit is contained in:
parent
82c9fdafef
commit
cb1c9b2bd6
1 changed files with 10 additions and 0 deletions
10
ics2mdwn.py
10
ics2mdwn.py
|
@ -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"))
|
||||
|
||||
|
|
Loading…
Reference in a new issue