documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Use `.Path` instead of `.File.Path` when surrounded by `with .File` block

Open mjankowski opened this issue 1 year ago • 1 comments

When I was working on https://github.com/mastodon/documentation/pull/1425 I was getting errors from this line.

I am not a hugo expert and genuinely have no idea what I'm doing here, however I found that with huge latest version (0.124.1) installed locally the error was solved by this change. I note that the build script here is specifically using an older version ... where presumably this error doesn't occur?

mjankowski avatar Apr 02 '24 18:04 mjankowski

Makes sense to merge this, but I think we will need to bump the Hugo version at the same time?

renchap avatar May 03 '24 08:05 renchap

Makes sense to merge this, but I think we will need to bump the Hugo version at the same time?

I'm not actually sure -- there are other places in other templates which are already doing what this change does, which makes me think it works on current version?

mjankowski avatar May 17 '24 14:05 mjankowski