# Unexpected EOF

**URL:** <https://discourse.gohugo.io/t/unexpected-eof/866>\
**Category:** support\
**Created:** [March 11, 2015, 9:44pm UTC](https://discourse.gohugo.io/t/unexpected-eof/866 "2015-03-11T21:44:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bucksci](https://avatars.discourse-cdn.com/v4/letter/b/a88e4f/32.png) [@bucksci](https://discourse.gohugo.io/u/bucksci)\
**Post date:** [March 11, 2015, 9:44pm UTC](https://discourse.gohugo.io/t/unexpected-eof/866/1 "2015-03-11T21:44:36Z")

</div>

I had this working this afternoon, but I’ve broken something - what should I be looking for?

ERROR: 2015/03/11 template: theme/index.html:286: unexpected EOF  
ERROR: 2015/03/11 template: theme/index.html~:285: unexpected EOF  
ERROR: 2015/03/11 Error while rendering homepage: html/template: “theme/index.html” is an incomplete template

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [March 11, 2015, 10:04pm UTC](https://discourse.gohugo.io/t/unexpected-eof/866/2 "2015-03-11T22:04:39Z")

</div>

Look for a template construct that isn’t closed (missing {{ end }}?).

This is Go’s template parser that has gotten to the end of file … unexpectedly.

What I do when this happens, if I don’t see it at once, is just remove stuff from the template until it works.
