Category hierarchy

Summary of this post

An introduction to hexoโ€™s category hierarchy.

Categories with hierarchy

# tag:
- Fruit
- Apple

# Result:
โ””โ”€โ”€ Fruit
    โ””โ”€โ”€ Apple

Categories without hierarchy (no hierarchy, parallel)

# tag:
- [Fruit, Apple]
- [Vegetable]

# Result:
โ”œโ”€โ”€ Fruit
|   โ””โ”€โ”€ Apple
โ””โ”€โ”€ Vegetable

Multiple parallel categories

# tag:
- [Fruit, Apple]
- [Fruit, Orange]
- [Vegetable]

# Result:
โ”œโ”€โ”€ Fruit
|   โ””โ”€โ”€ Apple
|   โ””โ”€โ”€ Orange
โ””โ”€โ”€ Vegetable

Sub-sub-category

# tag:
- [Fruit, Apple, Apple seed]
- [Vegetable]

# Result:
โ”œโ”€โ”€ Fruit
|   โ””โ”€โ”€ Apple
|      โ””โ”€โ”€ Apple Seed
โ””โ”€โ”€ Vegetable

Reference

hexo: Front-matter/Categories & Tags