-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add title to blog index page and image to newsletter #252
Conversation
4a37d13
to
56486e8
Compare
Gonna merge this so it goes out with the newsletter, but post-merge review should be fine here. |
@@ -53,7 +53,7 @@ | |||
|
|||
<div class="ui divider"></div> | |||
|
|||
<img class="ui big rounded centered image" src="{{ article.image or '/images/posts/default.svg' }}" alt="{{ article.image_credit }}"> | |||
<img class="ui big rounded centered image" src="{{ article.image or '/images/posts/default.svg' }}" alt="{{ article.image }}"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the alt was replaced with the image URL. I think this was correct before, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, the issue comes from using HTML in the image_credit, which isn't valid in an HTML attribute. I would use striptags
or escape the HTML instead of replacing with the URL.
With striptags:
Edit: added in #253
PR #252 dropped the alt text to support HTML in the image credits, but a more accessible fix here is just strip the HTML from the image credits when using the credits in the attribute.
PR #252 dropped the alt text to support HTML in the image credits, but a more accessible fix here is just strip the HTML from the image credits when using the credits in the attribute.
📚 Documentation preview 📚: https://read-the-docs-website--252.com.readthedocs.build/