You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The way the current template fetches images for member pages (single.html) is not working correctly when a representative's name has a special character (like an apostrophe: ').
To select an image for the representative on a member page, the current implementation matches the name for the representative introduced in the member.yaml file , against the image present in /assets/images/members/<member_name>/. If a representative's name contains an apostrophe, this matching fails.
Spelling the name wrong (Dintino instead of D'Intino) in both the member.yaml file and the jpg's file-name renders the image correctly on the page.
The text was updated successfully, but these errors were encountered:
Sakrecoer
changed the title
Template does not work for names with apostrophe
Template does not work for representative's name with apostrophe
Mar 5, 2025
The way the current template fetches images for member pages (
single.html
) is not working correctly when a representative's name has a special character (like an apostrophe:'
).To select an image for the representative on a member page, the current implementation matches the name for the representative introduced in the
member.yaml
file , against the image present in/assets/images/members/<member_name>/
. If a representative's name contains an apostrophe, this matching fails.For reference, see this
member.yaml
file: https://github.com/ForkbombEu/pkic.org/blob/ffa356906804884d31b3f34c578f2bbc594ae794/data/members/forkbomb.yaml#L50matched against a jpg here: https://github.com/ForkbombEu/pkic.org/tree/main/assets/images/members/forkbomb
Spelling the name wrong (
Dintino
instead ofD'Intino
) in both themember.yaml
file and the jpg's file-name renders the image correctly on the page.The text was updated successfully, but these errors were encountered: