I’ve just started using Grav and I’m using it to build a portfolio site at the moment. I’m having an issue with displaying the media related to a page - particularly in my local environment because the paths are coming out incorrectly. I used the short tutorial here as a base for this part: http://learn.getgrav.org/cookbook/general-recipes#creating-a-simple-gallery
in order to make use of the template portfolio.html.twig, your markdown file name should be the same,ie portfolio.md and located in the same folder as your images.
Thanks for that - I am actually using Yaml front matter to define the template to use (I’m not a fan of the naming convention). In either case, the templating part is fine, it’s just the path that’s being generated to the images that isn’t working correctly.
hmm. ok that’s weird, it’s actually linking to the image filesystem path, and not the image URL.
What is the Twig you have to output the image? Please paste between triple back ticks so it formats the code properly (click ? in top right corner of input box for help)
I’m just going to remove the reference to using the built in web server because while most of Grav works fine with it, it does break when it comes to routing. It could be the cause of your problems.