I suspect that many such issues are HTTP client caching (the browser); we have a flag to disable this in the server, but I recommend to always run with something ala the Chrome dev console open (with caching turned off (default)) when editing Hugo templates.