Skip to content

Commit

Permalink
docs: load 40x40 avatar from github and add loading=lazy attribute. (#…
Browse files Browse the repository at this point in the history
…11886)

Co-authored-by: Danny van Kooten <[email protected]>
  • Loading branch information
dannyvankooten and dannyvankooten authored Oct 20, 2023
1 parent 1a0c174 commit 6dae550
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/_build/scripts/people.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
auth = Auth.Token(token) if token else None
g = Github(auth=auth)

ICON_TEMPLATE = "[![{login}]({avatar_url}){{.contributor_icon}}]({html_url})"

ICON_TEMPLATE = '<a href="{html_url}"><img alt="{login}" class="contributor_icon" src="{avatar_url}&s=40" loading="lazy" /></a>'

def get_people_md():
repo = g.get_repo("pola-rs/polars")
Expand Down

0 comments on commit 6dae550

Please sign in to comment.