- fix: erratically missing chapter information in RSS feeds
I’m trying to update all my templates to the latest image syntax. There’s something wrong about this statement:
{{ episode.image({fallback: true}).html({width: 150, heigth: 150, alt: {{ episode.title }} }) }}
Without the alt-statement everything works fine - except the missing alt-functionality of course. Is there a problem accessing episode.title within the image.html-statement? Or did I use a wrong syntax?
Yes, just slightly wrong:
{{ episode.image({fallback: true}).html({width: 150, heigth: 150, alt: episode.title }) }}
That should work. {{ }}
means “print this to the website”, so you don’t need to use it when passing parameters.
Great, thank you for your hint.