add functionality to build index.html automatically after publishing a new post