I am trying to customise the default output format to generate files with php extension so i can include some small snippets to customise my site.
I have followed the instructions and modified my config:
[mediaTypes] [mediaTypes."text/html"] suffixes = ["php"] isHTML = true [outputs] home = [ "HTML"] [outputFormats] [outputFormats.HTML] mediaType = "text/html"
It correctly generates files with php suffix, but I no longer get pretty urls eg localhost:1313/docs/first/index.php rather than localhost:1313/docs/first/
If i remove the config for custom outputs it works as expected. I have tried setting the basename in the config but it doesn’t do anything. Is there a way i can get pretty url’s generated?
I have creaded a simple demo at https://github.com/acraftydev/hugophp