italia / developers.italia.it

The developer community designing and developing public digital services in Italy
https://developers.italia.it
BSD 3-Clause "New" or "Revised" License
231 stars 116 forks source link

Home platforms section displays incorrect titles #1454

Closed smonolo closed 5 months ago

smonolo commented 5 months ago

Describe the bug

Items belonging to the platforms section of the home page are displaying a wrong title. It is rendering the name of the file they are related to, but no the human-friendly formatted value.

This issue does not persist in the actual platforms page, where the correctly title is shown as supposed.

To Reproduce

  1. Go to the home page (/ or /en)
  2. Scroll down to platforms ("Piattaforme")
  3. Look at each item's title

Expected behavior

I should see each item display the correctly formatted title.

Screenshots

image

Additional context

It looks like the issue is caused by the home page cards trying to display item.name instead of item.title, leaving the correct value as a fallback. platforms.html correctly uses platform.title which seems to be working.

bfabio commented 5 months ago

Looks like this was introduced by #1446, maybe then new Jekyll version changed something