fix categories again
This commit is contained in:
parent
bd5aa7972f
commit
5101797b5a
1 changed files with 2 additions and 2 deletions
|
@ -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)]
|
||||
|
|
Loading…
Reference in a new issue