Customize Category Names
Customizing Category Names
The theme allows you to customize category display names and supports both single language and multilingual configurations.
Setup Steps
- Create a
data/categories.yaml
file in your site root directory - Choose either single language or multilingual format
- Configure your categories with display names and weights
Single Language Configuration
For single language sites, use this simple format:
Multilingual Configuration
For multilingual sites, use this format:
|
|
Configuration Options
Each category in categories.yaml
supports these options:
name
: String or map of language codes to display namesweight
: Integer for sorting (lower numbers appear first)
Notes
- Category keys in
categories.yaml
must match the category names used in your content files - Weights are optional, defaulting to 100 if not specified
- Categories are sorted by weight first, then by post count
- For multilingual sites, always provide a
default
name as fallback - Category names are case-insensitive in the configuration
Example Usage in Content
When creating posts, use the lowercase category name in your front matter:
Advanced Features
- Flexible Language Support: Add as many languages as needed in multilingual format
- Fallback System: Uses default name if specific language is not found
- Weight-based Sorting: Control category order in navigation
For more details, check the theme documentation.