Can a Discourse theme/template be customised to have this format?

@awesomerobot Thanks for the reply.

I have some experience in working with website (and forum) front-ends and some familiarity with JS backends. I’ve installed and customised phpBB3-based forums before. But I’ve no idea what’s the exact stack on which Discourse is built. From what I could gather it’s based on a ruby/JS app with a JS backend, a Postgres database – all configured to run in a Docker container.

Can you tell me in just a few words how templating and layout is handled by Discourse? Or maybe point me to the link where this is explained in the documentation. Maybe I can get an idea on how such a layout can be achieved. Is it based on Pug or some similar templating engine?