Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Trying to Switch Page Layouts #233

Closed
mary-grace opened this issue Nov 22, 2019 · 3 comments · Fixed by #235
Closed

[Bug] Trying to Switch Page Layouts #233

mary-grace opened this issue Nov 22, 2019 · 3 comments · Fixed by #235
Assignees
Labels

Comments

@mary-grace
Copy link

Expected behavior

Trying to switch page layout from row to grid -- I expect to be able to toggle between these two using those exact phrases in the config.toml site_layout = "" line.

Actual behavior

I get an error message when running it on my local machine:
Screenshot

failed to render pages: render of "home" failed: execute of template failed: template: index.html:5:8: executing "main" at <partial "grid.html" .>: error calling partial: "/Users/duck/repos/community-pulse-source/themes/castanet/layouts/partials/grid.html:104:33": execute of template failed: template: partials/grid.html:104:33: executing "partials/grid.html" at <.Permalink>: can't evaluate field Permalink in type *page.Pager

This happens whether jumbotron is true or false.

Reproduction Steps

Switch config.toml site_layout = "" line from row to grid

Operating System and Version

Mac OS 10.14.6

Web Browser and Version

Chrome 78.0.3904.87

Hugo Version

v0.59.1/extended darwin/amd64

@mattstratton mattstratton self-assigned this Nov 23, 2019
@mattstratton
Copy link
Owner

I was having the same issue when trying to upgrade arresteddevops.com to the latest Castanet, so it's the same bug I think. So the good news is, I can see it replicate in your site too. I'll work on this today.

@mattstratton
Copy link
Owner

I fixed this in #235; after I merge it I'll cut a release and that should fix it for you.

@mattstratton
Copy link
Owner

If you upgrade Castanet to 1.1.20 it should work now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants