Make sure links to blog posts end with a slash.

Turns out Github pages is causing 301 to the version that ends with slash.
Using 301 redirects in nginx instead.
Correct base URL.
Using the correct way, permalink in _config
Added sitemap.