To enable search on my blog, I’d like to create json files containing, for instance, post titles and URLs. Nothing complicated but I think it’s impossible right now.
A good feature, I think, would be to create custom templates like the RSS or sitemap which are in Hugo core. That way, I could define an output specific to my need and I guess it could be useful for other needs too.
Let me know if you need more information about this suggestion.
Well, I spoke to quickly : it does work to generate a JSON file, but now I have many problems with my blog. Every other post are not rendered the way they should, I guess it’s a type problem, but I have tried everything I could think of :
add post as the default type in config file
add an explicit post type to all my posts
even duplicate the single.html template in a “post” subfolder.
Nothing works, as you can see here : http://futur.voiretmanger.fr I have only the cover image and the title is deviated from the URL. I don’t understand why…