This commit is contained in:
boyska 2021-08-19 18:37:00 +02:00
parent 65fe358aff
commit a074d92484

View file

@ -121,7 +121,10 @@ class HugoConverter(Converter):
)
if "CATEGORIES" in talk:
try:
frontmatter["tags"] = [str(t) for t in talk.get("CATEGORIES").cats]
vobject = talk.get("CATEGORIES")
if hasattr(vobject, 'cats'):
vobject = vobject.cat
frontmatter["tags"] = [str(t) for t in vobject]
except Exception as exc:
logging.warning("Error parsing categories: %s", str(exc))
if 'base' in frontmatter['tags']: