Erro to setup theme

I using https://github.com/spencerlyon2/hugo_gh_blog to modify and setup my blog, and while I want to use other theme, (hugo -t hyde-x), it did not work, it can push to github, but theme had not been changed. Then I try to delete /root/layouts and clean all the files located in /root/statics , run the command to setup theme, it prompt lots of error as follow:


-e Deploying updates to Github…
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x7d0fb]

goroutine 1 [running]:
text/template.errRecover(0xc2081373d0)
/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:100 +0xbc
github.com/spf13/hugo/hugolib.(*pager).Pages(0x0, 0x0, 0x0, 0x0)
/private/tmp/hugo-4EGtcz/hugo-0.13/src/github.com/spf13/hugo/hugolib/pagination.go:55 +0x1b
reflect.Value.call(0x633c40, 0xc208291cf8, 0x1353, 0x663db0, 0x4, 0x99bc48, 0x0, 0x0, 0x0, 0x0, …)
/usr/local/Cellar/go/1.4.2/libexec/src/reflect/value.go:419 +0x10e5
reflect.Value.Call(0x633c40, 0xc208291cf8, 0x1353, 0x99bc48, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.4.2/libexec/src/reflect/value.go:296 +0xbc
text/template.(*state).evalCall(0xc2081d02c0, 0x631a80, 0xc2080fa000, 0x16, 0x633c40, 0xc208291cf8, 0x1353, 0xaa5178, 0xc20817fa70, 0xc20817477b, …)
/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:567 +0xaa4
text/template.(*state).evalField(0xc2081d02c0, 0x631a80, 0xc2080fa000, 0x16, 0xc20817477b, 0x5, 0xaa5178, 0xc20817fa70, 0xc208174780, 0x1, …)
/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:478 +0x34b
text/template.(*state).evalFieldChain(0xc2081d02c0, 0x631a80, 0xc2080fa000, 0x16, 0x633c40, 0xc208291cf8, 0x56, 0xaa5178, 0xc20817fa70, 0xc208182830, …)
/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:449 +0x2ad
text/template.(*state).evalVariableNode(0xc2081d02c0, 0x631a80, 0xc2080fa000, 0x16, 0xc20817fa70, 0xc208174780, 0x1, 0x1, 0x0, 0x0, …)
/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:437 +0x344
text/template.(*state).evalCommand(0xc2081d02c0, 0x631a80, 0xc2080fa000, 0x16, 0xc20817fa10, 0x0, 0x0, 0x0, 0x0, 0x0, …)
/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:364 +0xa49
text/template.(*state).evalPipeline(0xc2081d02c0, 0x631a80, 0xc2080fa000, 0x16, 0xc208108b90, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:332 +0x1a8
text/template.(*state).walkRange(0xc2081d02c0, 0x631a80, 0xc2080fa000, 0x16, 0xc208084080)
/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:245 +0x12e
text/template.(*state).walk(0xc2081d02c0, 0x631a80, 0xc2080fa000, 0x16, 0xaa51c0, 0xc208084080)
/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:178 +0x2a5
text/template.(*state).walk(0xc2081d02c0, 0x631a80, 0xc2080fa000, 0x16, 0xaa99f8, 0xc20817f770)
/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:175 +0x862
text/template.(*Template).Execute(0xc208173600, 0xa9f5e0, 0xc208010a80, 0x631a80, 0xc2080fa000, 0x0, 0x0)
/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:155 +0x3f2
html/template.(*Template).ExecuteTemplate(0xc208035b80, 0xa9f5e0, 0xc208010a80, 0xc2082a9530, 0x10, 0x631a80, 0xc2080fa000, 0x0, 0x0)
/usr/local/Cellar/go/1.4.2/libexec/src/html/template/template.go:92 +0xc0
github.com/spf13/hugo/hugolib.(*Site).renderThing(0xc208054000, 0x631a80, 0xc2080fa000, 0xc2082a9530, 0x10, 0xa9f5e0, 0xc208010a80, 0x0, 0x0)
/private/tmp/hugo-4EGtcz/hugo-0.13/src/github.com/spf13/hugo/hugolib/site.go:1449 +0x210
github.com/spf13/hugo/hugolib.(*Site).render(0xc208054000, 0x6a7810, 0x8, 0x631a80, 0xc2080fa000, 0xc208010a80, 0xc2082d3000, 0x6, 0x8, 0x0, …)
/private/tmp/hugo-4EGtcz/hugo-0.13/src/github.com/spf13/hugo/hugolib/site.go:1424 +0x2c0
github.com/spf13/hugo/hugolib.(*Site).renderAndWritePage(0xc208054000, 0x6a7810, 0x8, 0x661830, 0x1, 0x631a80, 0xc2080fa000, 0xc2082d3000, 0x6, 0x8, …)
/private/tmp/hugo-4EGtcz/hugo-0.13/src/github.com/spf13/hugo/hugolib/site.go:1387 +0xdf
github.com/spf13/hugo/hugolib.(*Site).RenderHomePage(0xc208054000, 0x0, 0x0)
/private/tmp/hugo-4EGtcz/hugo-0.13/src/github.com/spf13/hugo/hugolib/site.go:1201 +0x178
github.com/spf13/hugo/hugolib.(*Site).Render(0xc208054000, 0x0, 0x0)
/private/tmp/hugo-4EGtcz/hugo-0.13/src/github.com/spf13/hugo/hugolib/site.go:395 +0x1a1
github.com/spf13/hugo/hugolib.(*Site).Build(0xc208054000, 0x0, 0x0)
/private/tmp/hugo-4EGtcz/hugo-0.13/src/github.com/spf13/hugo/hugolib/site.go:244 +0x84
github.com/spf13/hugo/commands.buildSite(0xc208137c1f, 0x1, 0x1, 0x0, 0x0)
/private/tmp/hugo-4EGtcz/hugo-0.13/src/github.com/spf13/hugo/commands/hugo.go:342 +0xd2
github.com/spf13/hugo/commands.build(0x0, 0x0, 0x0)
/private/tmp/hugo-4EGtcz/hugo-0.13/src/github.com/spf13/hugo/commands/hugo.go:254 +0x2cb
github.com/spf13/hugo/commands.func·006(0x98bda0, 0x99bc48, 0x0, 0x0)
/private/tmp/hugo-4EGtcz/hugo-0.13/src/github.com/spf13/hugo/commands/hugo.go:51 +0x3f
github.com/spf13/cobra.(*Command).execute(0x98bda0, 0x0, 0x0, 0x0, 0x0, 0x0)
/private/tmp/hugo-4EGtcz/hugo-0.13/src/github.com/spf13/cobra/command.go:399 +0x38d
github.com/spf13/cobra.(*Command).Execute(0x98bda0, 0x0, 0x0)
/private/tmp/hugo-4EGtcz/hugo-0.13/src/github.com/spf13/cobra/command.go:447 +0x157
github.com/spf13/hugo/commands.Execute()
/private/tmp/hugo-4EGtcz/hugo-0.13/src/github.com/spf13/hugo/commands/hugo.go:64 +0x2f
main.main()
/private/tmp/hugo-4EGtcz/hugo-0.13/main.go:24 +0x2f


theme have any change, but lots of content did not display.

Anyone can help on my issue?

This is fixed in 0.14-DEV, but the workaround in 0.13 is to create at least one content page that matches the paginator or paginate criteria. It’s the paginator that panics because there’s nothing to paginate …

I notice hyde-x assumes a Type “post” to be listed on the front page:

If you named your section(s) differently, this will not work.

You could duplicate the index.html and fix it or get the hyde-x theme author make this more general.