How to add .html to the end of WordPress pages?

If you love the static .html style for your WordPress blog, you can add .html to the end of each blog post. This can be done by using a custom…