How to create a new Inventory category

Justin W. Flory
Guidance on creating a new content category in the UNICEF Open Source Inventory.

This how-to article explains how to create a new category in the Open Source Inventory.

1. Steps ðŸ”—

  1. Create a new folder in the content/ directory.

  2. Create a _index.en.adoc page in the new directory (see template).

  3. Add the category to config.yml as a child to [[menu.main]]. See other categories in the config as an example.

2. Template for new index pages ðŸ”—

Use this base template for the front-matter of a new index page:

1
2
3
4
5
6
7
---
title: "Pretty name"
icon: "ti-layout-width-default-alt"
description: "Subtitle to describe your category."
type: "docs"

---

2.1. Choose an icon ðŸ”—

The icon used in the index file comes from the Themify Icons set. The name of an icon must match the name of an icon appearing on this list.