First off, great software. Very fast and easy on the eyes.
To the meat and potatoes… Is it possible to embed code into a page? I need a contact form and either my Google-Fu is worse than I thought or I’m just looking for something that’s not there. Can I embed HTML5/PHP into a page’s markdown file? Or do I need a new template for that page and embed the code there?
You can certainly embed HTML in a markdown page. HTML within markdown is 100% standard and supported as part of the markdown ‘spec’. If you need logic, you can use Twig in markdown content too as long you enable PHP in the page header (see the docs on this). You can also do the Twig in a custom template file.
If you MUST have PHP, you will need to create a Grav plugin or a Twig filter.