Skip to content

Replaced deprecated .URL of pages with .RelPermalink

michaelb requested to merge michaelb/stustanet-website:fix_deprecation into master

Not sure whether .RelPermalink or .Permalink should be used and as I haven't really checked what the code does in this block/lack the html/hugo knowledge to bother with this. The website seems to work fine however.

Fixes the site with hugo 97

src:

https://discourse.gohugo.io/t/why-does-page-url-deprecated-work-while-relpermalink-throws-an-error/35694

https://gohugo.io/variables/page/

Edited by michaelb

Merge request reports

Loading