There are at least two ways to achieve this:
- a category map in your config: Saving Categories, How to return the category value on the frontend?
(syntax is Kirby 2, so you have to adapt the code, but you should get the idea). - access the blueprint: https://getkirby.com/docs/cookbook/templating/blueprints-in-frontend