You may wanna have a look at this thread. And here’s the documentation for creating custom kirbytags.