How can I code a 'NEW' badge on a product in the District template?

Hello everyone,

I want to create a “NEW” badge on the product you see on a collection page by using code instead of an app. I’ve already seen a few examples, but it doesn’t seem to work with the District template, I don’t have a product.badge.liquid for example. How can I do this?

Thank you in advance.

Best,

Leonie