Executing "main" at <.URL>: can't evaluate field URL in type *hugolib.pageState

Hello, I’m trying to run my theme that I last ran in 05/21 using hugo_extended_0.80.0. I understand that something became deprecated since then, and now I’m getting the error message: execute of template failed: template: _default/single.html:9:31: executing “main” at <.URL>: can’t evaluate field URL in type *hugolib.pageState

{{ range (split .URL "/") }}

Please help me fix this error until I get up to your speed.

Use .RelPermalink or .Permalink instead of .URL.

Thanks a lot, it worked! Both settings - .RelPermalink and .Permalink - work, but .Permalink gives a better build time. Not sure how to explain this.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.