go's html/template was thinking header.html and other template snippets were full documents, so inserting their own <html> and other tags, breaking the head up. Renaming to txt seems to fix things.