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

fix deprecated method in template which did not allow hugo to compile #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kdiab
Copy link

@kdiab kdiab commented May 9, 2024

starting a hugo server with the command hugo server -D would throw the following error:

Error: error building site: render: failed to render pages: render of "home" failed: ".../themes/ga-hugo-theme/layouts/_default/list.html:14:31": execute of template failed: template: _default/list.html:14:31: executing "_default/list.html" at <.URL>: can't evaluate field URL in type page.Page

This is fixed by changing the .URL method into .RelPermalink.

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

Successfully merging this pull request may close these issues.

1 participant