fix categories again

This commit is contained in:
boyska 2021-08-24 18:17:13 +02:00
parent bd5aa7972f
commit 5101797b5a

View file

@ -136,8 +136,8 @@ class HugoConverter(Converter):
if "CATEGORIES" in talk:
try:
vobject = talk.get("CATEGORIES")
if hasattr(vobject, 'cats'):
vobject = vobject.cat
if hasattr(vobject, "cats"):
vobject = vobject.cats
frontmatter["tags"] = [str(t) for t in vobject]
else:
frontmatter["tags"] = [str(vobject)]