Check that out. You “might” be able to make a custom output format for the markdown. HOWEVER, I doubt this would be made into html pages. So, not sure what you are trying to accomplish here.
yea if you want that markdown rendered into a page, you need to do it apart from hugo. but if you literally want to create markdown files as an output, you can do that with the custom outputs.
That’s… kinda weird to say. Because you still need source markdown files to generate the output.
So perhaps I misunderstood the OP. @guayom, you wanted those markdown files in the people section of your content folder in order to generate web pages, ne?
Okay, cool, then you know what you need to do (use a separate task/script to generate those in content).
I will add one thing: you can be really terse with the markdown files. For instance, you can generate a content file for each record in your data file, and make the title of the content match a value in the data. Then in that section’s single template you can pull the rest of info over.
So you’d have a file at /content/people/jane.md read:
---
title: Jane
date: 2007-11-02T02:06:46+00:00
---
And then in your /layouts/section/people.html pull in the other info, via named value.
I suggest this, because then you can edit your people info in one file, and the creation task should be a little simpler.
@maiki I kinda like your idea for some things. That’s a good idea.
For the specific task I have in mind, what I’m trying to do is basically import the content pulled from another database. After that, I will just have to maintain this new files that I generated. I could basically delete the yml databases.