Joe Mooring

Results 602 comments of Joe Mooring

I've changed the issue title. We can expand on this if the project lead accepts the proposal.

General comments... 1. Theme and module authors often duplicate configurations under params (e.g., for custom TOC, hooks, and pagination). This isn't ideal, but it's necessary because we intentionally don't expose...

Confirmed. This has been an issue since at least v0.54.0 (I didn't test anything earlier). Simplied example... layouts/shortcodes/foo.html ```` ``` = 4 spaces) instead of with fences.

I'm also going to alphabetize the entries, so the change set will be a bit larger.

I think we can remove this: ```go ns.AddMethodMapping(ctx.DoDefer, []string{"doDefer"}, [][2]string{}, ) ``` The function is marked for internal use, and we have not documented it anywhere.

> I assume a test will fail It does. Thanks.

@bep Prior to the changes in https://github.com/gohugoio/hugo/pull/14197 you could use a remote resource with `openapi3.Unmarshal`: ```go-html-template {{ with try (resources.GetRemote $url) }} {{ with .Err }} {{ errorf "%s" ....

My understanding/experience with OpenAPI documents is nil. I'll use the example you provided above, but I don't understand why you would need to add an authorization header once you already...

Gotcha. Thanks for the explanation. This example (per yours above)... ```text {{ $api := "" }} {{ $url := "https://petstore.swagger.io/v2/swagger.json" }} {{ $opts := dict "key" (dict "Authorization" "Bearer abcd")...

Order of args... should have seen that.