fix
This commit is contained in:
parent
f7938c3025
commit
f592330bdf
1 changed files with 2 additions and 4 deletions
|
@ -103,8 +103,7 @@ class HugoConverter(Converter):
|
||||||
fname = "%s.md" % uid
|
fname = "%s.md" % uid
|
||||||
fpath = self.args.out_md_dir / fname
|
fpath = self.args.out_md_dir / fname
|
||||||
self.changed_files.append(fpath)
|
self.changed_files.append(fpath)
|
||||||
frontmatter = (
|
frontmatter = dict(
|
||||||
dict(
|
|
||||||
key=uid,
|
key=uid,
|
||||||
title=talk.decoded("SUMMARY").decode("utf8"),
|
title=talk.decoded("SUMMARY").decode("utf8"),
|
||||||
format="conference",
|
format="conference",
|
||||||
|
@ -117,8 +116,7 @@ class HugoConverter(Converter):
|
||||||
).total_seconds()
|
).total_seconds()
|
||||||
// 60
|
// 60
|
||||||
),
|
),
|
||||||
),
|
)
|
||||||
)
|
|
||||||
if "CATEGORIES" in talk:
|
if "CATEGORIES" in talk:
|
||||||
frontmatter["tags"] = [str(t) for t in talk.get("CATEGORIES").cats]
|
frontmatter["tags"] = [str(t) for t in talk.get("CATEGORIES").cats]
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue