6:06:27 PM: ERROR: 2017/03/23 00:06:27 general.go:212: Error while rendering section : template: theme/_default/list.html:41:45: executing "theme/_default/list.html" at <index .Site.Params.a...>: error calling index: value is nil; should be of type string
6:06:27 PM: Cleaning up docker container
6:04:43 PM: Error running command: Build script returned non-zero exit code: 255
6:06:27 PM: Error running command: Build script returned non-zero exit code: 255
6:06:28 PM: Finished processing build request
I’m getting this error in Netlify, but I don’t have errors in hugo serve -v
The code in question is at the following file:
theme/_default/list.html
Line 41:
{{$author := index .Site.Params.authors .Params.author }}
(localhost log)
stoned@stoned-desktop:~/media/websites/psychedelicsdaily.com$ hugo serve -v
INFO 2017/03/22 22:33:21 Using config file:
INFO 2017/03/22 22:33:21 using a UnionFS for static directory comprised of:
INFO 2017/03/22 22:33:21 Base: /home/stoned/media/websites/psychedelicsdaily.com/themes/hugo-universal-theme/static
INFO 2017/03/22 22:33:21 Overlay: /home/stoned/media/websites/psychedelicsdaily.com/static/
INFO 2017/03/22 22:33:21 syncing static files to /
Started building sites ...
INFO 2017/03/22 22:33:21 found taxonomies: map[string]string{"tag":"tags", "category":"categories", "author":"authors"}
WARN 2017/03/22 22:33:21 [en] Unable to locate layout for page : [taxonomy/author.terms.html _default/terms.html indexes/indexes.html theme/taxonomy/author.terms.html theme/_default/terms.html theme/indexes/indexes.html theme/taxonomy/author.terms.html theme/_default/terms.html theme/indexes/indexes.html theme/theme/taxonomy/author.terms.html theme/theme/_default/terms.html theme/theme/indexes/indexes.html]
WARN 2017/03/22 22:33:21 authors is rendered empty
WARN 2017/03/22 22:33:21 [en] Unable to locate layout for page : [taxonomy/category.terms.html _default/terms.html indexes/indexes.html theme/taxonomy/category.terms.html theme/_default/terms.html theme/indexes/indexes.html theme/taxonomy/category.terms.html theme/_default/terms.html theme/indexes/indexes.html theme/theme/taxonomy/category.terms.html theme/theme/_default/terms.html theme/theme/indexes/indexes.html]
WARN 2017/03/22 22:33:21 categories is rendered empty
WARN 2017/03/22 22:33:21 [en] Unable to locate layout for page : [taxonomy/tag.terms.html _default/terms.html indexes/indexes.html theme/taxonomy/tag.terms.html theme/_default/terms.html theme/indexes/indexes.html theme/taxonomy/tag.terms.html theme/_default/terms.html theme/indexes/indexes.html theme/theme/taxonomy/tag.terms.html theme/theme/_default/terms.html theme/theme/indexes/indexes.html]
WARN 2017/03/22 22:33:21 tags is rendered empty
Built site for language en:
0 draft content
0 future content
0 expired content
10 regular pages created
14 other pages created
0 non-page files copied
11 paginator pages created
4 tags created
2 categories created
3 authors created
total in 37 ms
WARN 2017/03/22 22:33:21 Skip i18nDir: lstat /home/stoned/media/websites/psychedelicsdaily.com/i18n: no such file or directory
WARN 2017/03/22 22:33:21 Skip layoutDir: lstat /home/stoned/media/websites/psychedelicsdaily.com/layouts: no such file or directory
Watching for changes in /home/stoned/media/websites/psychedelicsdaily.com/{data,content,static,themes}
WARN 2017/03/22 22:33:21 Skip i18nDir: lstat /home/stoned/media/websites/psychedelicsdaily.com/i18n: no such file or directory
WARN 2017/03/22 22:33:21 Skip layoutDir: lstat /home/stoned/media/websites/psychedelicsdaily.com/layouts: no such file or directory
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
I can’t see any error on localhost, and I don’t see anything obviously wrong w/ my code.
Why would netlify fail to deploy? Any ideas? Not sure if I should even be asking here.