Configure new Distill blog to remove /posts/ directory from the rendered site?

I'm creating a new Distill blog and would like for /posts/ to not appear in the URL. Is there an easy way to achieve this? I don't mind forking the Distill repo if necessary.

In other words, I would like post URLs to appear as follows:

I realize that posts are initially created within the _posts directory, and upon building are copied to the _site/posts/ directory, which makes total sense. I'm just wondering if there's an easy way to modify this behavior?

I've poked around in the source file distill/R/create.R, and it looks like the behavior I'm describing goes even deeper into perhaps rmarkdown::render() territory but I'm getting a bit lost.


This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.