"Jekyll is a simple, extendable, static site generator. You give it text written in your favorite markup language and it churns through layouts to create a static website. Throughout that process you can tweak how you want the site URLs to look, what data gets displayed in the layout, and more."
Jekyll has been working great for us over the years, but one thing that was missing was a way to manage outdated articles. Basically, we wanted the ability to unpublish articles that have not been updated for a few months, so we can review and update them.
Since we didn't find any existing tool that does such thing we decided to make our own.
Blogcop is a GitHub bot that we built to solve the problem mentioned above.
- Be triggered when you push a commit to master.
- Look for articles that have not been updated in the last 3 months (by looking at their last commit date).
- Create an Issue for every outdated article.
- Create a Pull Request to unpublish every outdated article.
If you are interested you can check the GitHub app's source code in: https://github.com/ombulabs/blogcop. The bot is a simple Sinatra app that was built using the github-app-template. If you want to learn more about building GitHub apps I recommend you checking at the official documentation.
If you're currently using Jekyll on your blog or if you were looking for GitHub app examples I hope you find this article useful.
Let us know in the comments section if you have any feedback on this tool.