Seeking Help with first Hugo Site - ERROR: 2015/11/25 Error while rendering homepage: template: theme/index.html

Hello,

Working on my first Hugo site so thanks in advance for your patience and help!

The site runs fine in my local environment when I run the command:

hugo server -ws ~/dev/hugo/sw

And I’ve got everything working how I want it.

I’ve just tried to do a final “hugo” run without the server command and without “–watch” or “-w” to rebuild the site and I receive the following error message:

ERROR: 2015/11/25 Error while rendering homepage: template: theme/index.html:22:11: executing "theme/index.html" at <.Summary>: Summary is not a field of struct type *hugolib.Node

(probably should have tried that commend earlier)

Here is the source for my site:

Here’s the Tree (with /public/ removed for ease of viewing - apologies for all the schwag)


├── archetypes
├── cli
├── config.toml
├── content
│ ├── Contact.md
│ ├── Distribution.md
│ ├── FAQ.md
│ ├── Our-Story.md
│ ├── Products.md
│ ├── index.md
│ └── post
│ ├── crusade-for-Gluten-Free-Injera-Tasmania.md
│ ├── logo-motion.md
│ └── problem-with-pasteurised-food.md
├── data
├── layouts

(public was here)

├── static
│ └── img
│ ├── blog
│ │ ├── deadmans-bay.jpg
│ │ ├── final-logo-sketch.jpg
│ │ ├── injera.jpg
│ │ ├── ironbound.jpg
│ │ ├── label-prototypes.jpg
│ │ ├── lactobacillus_casei.jpg
│ │ ├── lion-rock.jpg
│ │ ├── logos-traced.jpg
│ │ ├── louis_pasteur.jpg
│ │ ├── prion-bay.jpg
│ │ └── surprise-bay.jpg
│ ├── global
│ │ ├── P1010184.jpg
│ │ ├── jumping_jacks.jpg
│ │ └── sw_logo.svg
│ └── page
│ └── sw-profile-pic.jpg
└── themes
└── sw
├── LICENSE
├── README.md
├── archetypes
│ └── default.md
├── images
│ ├── screenshot.png
│ ├── theme-colours.png
│ └── tn.png
├── layouts
│ ├── 404.html
│ ├── _default
│ │ ├── list.html
│ │ └── single.html
│ ├── index.html
│ ├── original.index.html
│ ├── partials
│ │ ├── foot.html
│ │ ├── head.html
│ │ └── sidebar.html
│ ├── post
│ │ ├── list.html
│ │ ├── post.html
│ │ └── single.html
│ └── section
│ └── post.html
├── static
│ ├── css
│ │ ├── hyde-overrides.css
│ │ ├── hyde-x.css
│ │ ├── hyde.css
│ │ ├── poole-overrides.css
│ │ ├── poole.css
│ │ └── rwa.css
│ ├── favicon-144-S.png
│ ├── favicon-32-S.png
│ ├── paper-dark.png
│ ├── paper-extra-dark.png
│ ├── paper-light.png
│ └── paper.png
└── theme.toml


i’m pretty sure i’m swimming in circles similar to these posts:

https://discuss.gohugo.io/t/error-from-template-content-is-not-a-field-of-struct-type-hugolib-node/1221/4

But I can’t figure it out myself at this juncture.
Any sagely tips are most welcome!
Thanks

here is the verbose output:

INFO: 2015/11/25 Using config file: /Users/rasterisk/dev/hugo/sw/config.toml
INFO: 2015/11/25 syncing from /Users/rasterisk/dev/hugo/sw/themes/sw/static to /Users/rasterisk/dev/hugo/sw/public/
INFO: 2015/11/25 syncing from /Users/rasterisk/dev/hugo/sw/static/ to /Users/rasterisk/dev/hugo/sw/public/
INFO: 2015/11/25 found taxonomies: map[string]string{"category":"categories"}
ERROR: 2015/11/25 Error while rendering homepage: template: theme/index.html:22:11: executing "theme/index.html" at <.Summary>: Summary is not a field of struct type *hugolib.Node

and hugo check

index.md (renderer: markdown) (layout: index/single.html, exists: false) (layout: _default/single.html, exists: false) (layout: theme/index/single.html, exists: false) (layout: theme/_default/single.html, exists: true)
 canonical => !no target specified!

post/logo-motion.md (renderer: markdown) (layout: post/single.html, exists: false) (layout: _default/single.html, exists: false) (layout: theme/post/single.html, exists: true) (layout: theme/_default/single.html, exists: true)
 canonical => !no target specified!

post/problem-with-pasteurised-food.md (renderer: markdown) (layout: post/single.html, exists: false) (layout: _default/single.html, exists: false) (layout: theme/post/single.html, exists: true) (layout: theme/_default/single.html, exists: true)
 canonical => !no target specified!

post/crusade-for-Gluten-Free-Injera-Tasmania.md (renderer: markdown) (layout: post/single.html, exists: false) (layout: _default/single.html, exists: false) (layout: theme/post/single.html, exists: true) (layout: theme/_default/single.html, exists: true)
 canonical => !no target specified!

Our-Story.md (renderer: markdown) (layout: page/single.html, exists: false) (layout: _default/single.html, exists: false) (layout: theme/page/single.html, exists: false) (layout: theme/_default/single.html, exists: true)
 canonical => !no target specified!

Products.md (renderer: markdown) (layout: page/single.html, exists: false) (layout: _default/single.html, exists: false) (layout: theme/page/single.html, exists: false) (layout: theme/_default/single.html, exists: true)
 canonical => !no target specified!

FAQ.md (renderer: markdown) (layout: page/single.html, exists: false) (layout: _default/single.html, exists: false) (layout: theme/page/single.html, exists: false) (layout: theme/_default/single.html, exists: true)
 canonical => !no target specified!

Contact.md (renderer: markdown) (layout: page/single.html, exists: false) (layout: _default/single.html, exists: false) (layout: theme/page/single.html, exists: false) (layout: theme/_default/single.html, exists: true)
 canonical => !no target specified!

OK I think I fixed this issue.
I was looking for the Section in my index.html file.
I had retooled this template to display a custom homapage and forgot to remove this:

{{ if eq .Site.Params.truncate false }}
{{ .Content }}
{{ else if .Description }}
<p>{{ .Description }}</p>
<a href="{{ .Permalink }}">Read More...</a>
{{ else }}
{{ .Summary }}
{{ if .Truncated }}
<a href="{{ .Permalink }}">Read More...</a>{{ end }}
{{ end }}

I call the {{.Content}} in a separate {{ if }} conditional prior to this, and will never need a {{ .Summary }} for the homepage.