Accept category or categories (plural) in frontmatter

Is there a way to get Hugo to recognize both “categories” and “category” as the same thing in post frontmatter? I’m blending large libraries of old content and it comes in three different flavors:

categories: [ "one", "two" ]
categories:
    - one
    - two
category: one

Is there a way to get Hugo to pretend those are all the same thing? Or do I just have to grep it all?

Many thanks!

No, there is not.

Okie doke, then. Thanks!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.