Rename file during build

Hello every one.
Is there anyway to rename file during build process. I have a bunch of readme.md file at the root of some of my website’s content folder. And i would like to transform it to index.html after build process.

Thank you a lot.

not sure exactly what you mean, but do those md files have front matter? if so you can set a permalink there, and that basically renames it to whatever the permalink is.

If you have a file named readme.md with front matter:

---
permalink: index.html
---

you should end up with a file in the root called index.html. I think.