From ca37a660de3fa926b7d84780a039e65682af054a Mon Sep 17 00:00:00 2001 From: "Daniel J. Summers" Date: Wed, 30 Aug 2017 06:12:32 -0500 Subject: [PATCH] Describe how to assign multiple categories Update to support changes in Hexo issue 848 (PR 2734) --- source/docs/front-matter.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/source/docs/front-matter.md b/source/docs/front-matter.md index 1209d69c63..94ab75c59a 100644 --- a/source/docs/front-matter.md +++ b/source/docs/front-matter.md @@ -44,3 +44,15 @@ tags: - Fight - Shocking ``` + +If you want to apply multiple category hierarchies, use a list of names instead of a single name. If Hexo sees any categories defined this way on a post, it will treat each category for that post as its own independent hierarchy. + +**Example** + +``` yaml +categories: +- [Sports, Baseball] +- [MLB, American League, Boston Red Sox] +- [MLB, American League, New York Yankees] +- Rivalries +```