Simple Blog Website Only With nginx Configuration

here is how you can create a simple blog/website in 10 lines of nginx configugration code

server {
  listen 80;
  server_name yourdomain.com www.yourdomain.com;
  root /home/ubuntu/path-to-site;
  location / {
  }
  location /blog {
    try_files $uri $uri/ @htmlext;
  }
  location @htmlext {
      rewrite ^(.*)$ $1.html last;
  }
}