Ok so I’m getting pretty close to cracking this thing and finally getting the first draft of my personal site up and running. I tracked what I think is the last error down but the thing is that whenever I work that error out, it causes an event to occur that creates another error. The repo can be found at this link.
So here’s the what the original error looked like:
Started building sites ...
panic: interface conversion: interface {} is []interface {}, not map[string]interface {}
goroutine 1 [running]:
github.com/gohugoio/hugo/hugolib.(*Site).loadData(0xc420090000, 0xc420757798, 0x2, 0x2, 0xbd702b, 0x2)
/build/hugo-gtPQ98/hugo-0.25.1/obj-x86_64-linux-gnu/src/github.com/gohugoio/hugo/hugolib/site.go:890 +0x86e
github.com/gohugoio/hugo/hugolib.(*Site).readDataFromSourceFS(0xc420090000, 0xbe193b, 0xa)
/build/hugo-gtPQ98/hugo-0.25.1/obj-x86_64-linux-gnu/src/github.com/gohugoio/hugo/hugolib/site.go:936 +0x186
github.com/gohugoio/hugo/hugolib.(*Site).process(0xc420090000, 0x101, 0xc420cd6b40, 0x458c53, 0x458c53)
/build/hugo-gtPQ98/hugo-0.25.1/obj-x86_64-linux-gnu/src/github.com/gohugoio/hugo/hugolib/site.go:948 +0x96
github.com/gohugoio/hugo/hugolib.(*HugoSites).process(0xc42018b0b0, 0xc420cd6b30, 0x0, 0x0, 0x0, 0x0, 0x0)
/build/hugo-gtPQ98/hugo-0.25.1/obj-x86_64-linux-gnu/src/github.com/gohugoio/hugo/hugolib/hugo_sites_build.go:141 +0x126
github.com/gohugoio/hugo/hugolib.(*HugoSites).Build(0xc42018b0b0, 0x101, 0x0, 0x0, 0x0, 0x0, 0xc4201d36e8, 0xc4200eda30)
/build/hugo-gtPQ98/hugo-0.25.1/obj-x86_64-linux-gnu/src/github.com/gohugoio/hugo/hugolib/hugo_sites_build.go:49 +0x102
github.com/gohugoio/hugo/commands.(*commandeer).buildSites(0xc4201e7620, 0x1, 0x0, 0xc4201d3680)
/build/hugo-gtPQ98/hugo-0.25.1/obj-x86_64-linux-gnu/src/github.com/gohugoio/hugo/commands/hugo.go:750 +0xb5
github.com/gohugoio/hugo/commands.(*commandeer).build(0xc4201e7620, 0xc4200edade, 0x1, 0x1, 0xc4201f75f0, 0x16)
/build/hugo-gtPQ98/hugo-0.25.1/obj-x86_64-linux-gnu/src/github.com/gohugoio/hugo/commands/hugo.go:521 +0xa7
github.com/gohugoio/hugo/commands.server(0xf97400, 0xc420016b80, 0x0, 0x1, 0x0, 0x0)
/build/hugo-gtPQ98/hugo-0.25.1/obj-x86_64-linux-gnu/src/github.com/gohugoio/hugo/commands/server.go:168 +0x87a
github.com/spf13/cobra.(*Command).execute(0xf97400, 0xc420016b30, 0x1, 0x1, 0xf97400, 0xc420016b30)
/build/hugo-gtPQ98/hugo-0.25.1/obj-x86_64-linux-gnu/src/github.com/spf13/cobra/command.go:649 +0x457
github.com/spf13/cobra.(*Command).ExecuteC(0xf95b40, 0xc16628, 0x405edc, 0xc42001a178)
/build/hugo-gtPQ98/hugo-0.25.1/obj-x86_64-linux-gnu/src/github.com/spf13/cobra/command.go:728 +0x339
github.com/gohugoio/hugo/commands.Execute()
/build/hugo-gtPQ98/hugo-0.25.1/obj-x86_64-linux-gnu/src/github.com/gohugoio/hugo/commands/hugo.go:172 +0x60
main.main()
/build/hugo-gtPQ98/hugo-0.25.1/obj-x86_64-linux-gnu/src/github.com/gohugoio/hugo/main.go:27 +0x36
So I tried a few things and eventually ended up making that go away by getting rid of the data/devicons.json file. Which in turn led to me getting this error:
WARNING: calling IsSet with unsupported type “string” (string) will always return false.
ERROR 2018/03/29 23:25:01 Error while rendering “home”: template: /home/jdbohrman/Dropbox/jdbohrman.github.io (Resume)/layouts/index.html:4:10: executing “main” at <partial "portfolio/s…>: error calling partial: template: partials/portfolio/skills.html:15:55: executing “partials/portfolio/skills.html” at <$.Site.Data.devicons>: devicons is not a method but has arguments
So obviously something is wrong somewhere, but I don’t feel confident enough to find it on my own. any help will be rewarded with virtual high fives.
Oh and here’s line 15 of partials/skills.html:
<i class="devicons devicons-{{ if $.Site.Data.devicons (lower .name) }}{{ lower .name }}{{ else }}terminal_badge{{ end }}"></i>