Closed thisisdano closed 7 years ago
Are these the fields that we'll be using? I think the gravatar
one will be confusing. Would prefer if we could pull that img from Github so that the sign-up process for identity occurs in one place.
It would be nice to list out where the contributor/author is located, to better show how distributed people are (or can be). Adds the possibility for a nice national, human element to bios.
Used gravatar since it was simple. Adding GitHub would require learning how to use an API, I think. Which I suppose I have to do at some point... And if we did pull via an API, would this make the builds super slow? Would we want to do it via js? These are all Qs I didn't feel prepared to answer!
We can take the github username, and add it into this URL
https://github.com/thisisdano.png?size=202
— link
We can append .png to the URL for the User's profile to get redirected to their avatar. We can add the query param size to specify a size smaller than the default of 460px wide (i.e. it won't allow larger than 460).
Sorry, I should have mentioned that I looked this up a few weeks back.
Oh nice. :boom:
Outputs like so: https://federalist-proxy.app.cloud.gov/preview/gsa/digital.gov/dw-author-social/authors/foo-qaz/
Note that this uses some more fields in the
author.yml
:Note also that this adds a new github field/icon(!)