This PR addresses https://github.com/a11yproject/a11yproject.com/issues/1220. It refactors the featured post and resource components by splitting the concerns up into 3 distinct pieces:
- A featured post partial
- A featured resource partial
- A card partial
While there is a little DRY code between the featured post and resource partials, I think it will be easier to maintain. The previous partial tried to do too much and be too clever about it, which led to causing issues with the first attempt at a fix.
These videos demonstrate the updated fixes:
https://user-images.githubusercontent.com/634191/113942628-1e75e780-97cf-11eb-8a33-04d603f264c9.mov
https://user-images.githubusercontent.com/634191/113942670-2e8dc700-97cf-11eb-9496-afacf5f58a8a.mov