Hey,
I'm currently developing a Grav Theme for my Internet presence and I want to use it as a Blog and "Content aggregator". I've tracked my playtime for several games in my own database and I developed a Grav Plugin that gets those playtimes (it's an integer that represents the minutes I've played a game). I've a grav folder called "Games" and the games I've played are pages within this folder. I want to show the playtime on the game page, but I struggle with twig and I'm not sure what options I have.
Example:
Game: Lord of the Rings Online
Playtime: 123 (minutes)
What should be displayed: 2h 3min
But instead it's the following: 2,05 (Twig: {{playtime/60}})
I have one solution in my head and that's calculating 2 times (for hours and for minutes separately). Is there a better solution for this?