credential-handler / chapi.io

https://chapi.io/
Other
7 stars 4 forks source link

Fix images on multicredentials page. #34

Closed BigBlueHat closed 1 year ago

BigBlueHat commented 1 year ago

Paths changed with new permalink style.

davidlehn commented 1 year ago

It looks like this pattern is going to fix paths in 11ty, but break them on github? In 11ty with the file-as-dir style, it needs the '..', but if you look at the markdown on github, it is then broken since it looks up a dir. Is there a solution that works both ways?

https://github.com/credential-handler/chapi.io/blob/main/developers/verifiers/multicredentials.md https://github.com/credential-handler/chapi.io/blob/fix-images-on-multicreds/developers/verifiers/multicredentials.md

BigBlueHat commented 1 year ago

It looks like this pattern is going to fix paths in 11ty, but break them on github? In 11ty with the file-as-dir style, it needs the '..', but if you look at the markdown on github, it is then broken since it looks up a dir. Is there a solution that works both ways?

Good call. I'll fix that by making the file structure more closely match the Web structure.

One moment please....

BigBlueHat commented 1 year ago

@davidlehn now every page is an index.md which makes the images work both places: https://github.com/credential-handler/chapi.io/blob/fix-images-on-multicreds/developers/verifiers/multicredentials/index.md