Using Jekyll/Github pages. As part of a content overhaul, we've moved a lot of pages to an external site. We'd like to clean up our Github pages repository and remove all purged files while providing a 301 redirect to the new domain where they now live.
The problem is that - according to my understanding of the docs - you must have a markdown file present with a redirect_to
field. This defeats the purpose of purging the files in our repo. Is there a way to configure redirects from the _config.yml
file or a plugin that allows me to do this from a single file?