Skip to content

Use srcset for author avatar #265

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

Closed
danielepolencic opened this issue Dec 15, 2019 · 0 comments
Closed

Use srcset for author avatar #265

danielepolencic opened this issue Dec 15, 2019 · 0 comments

Comments

@danielepolencic
Copy link
Contributor

The current avatar image in a blog post is oversized.

We should change the default image from:

<img src='assets/authors/daniel_weibel.jpg' alt='Daniel Weibel' />

to

<img src='assets/authors/image-64x64.jpg' alt='<name>' srcSet="
examples/images/image-64x64.jpg 1x, 
examples/images/image-128x128.jpg 2x
"/>

You can find more info about srcset here: https://www.smashingmagazine.com/2014/05/responsive-images-done-right-guide-picture-srcset/

Update al author avatars to use srcSet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant