mirror of https://github.com/luizdepra/hugo-coder.git

Oliver B. Fischer
19 hours ago 58d956f41c056a12e15d5b6ee27c54fc98cd6e49
refs
author Oliver B. Fischer <hello@oliverfischer.dev>
Thursday, June 18, 2026 05:03 +0200
committer GitHub <noreply@github.com>
Thursday, June 18, 2026 05:03 +0200
commit58d956f41c056a12e15d5b6ee27c54fc98cd6e49
tree 7236dc5078ac21cc6212cf7539e316a6052bf015 tree | zip | gz
parent 108f96c814a5a80e9b402776c4f18e21691e1243 view | diff
Provide image attributes width and height for Gravatar (#999)

### Prerequisites

Put an `x` into the box(es) that apply:

- [ ] This pull request fixes a bug.
- [x] This pull request adds a feature.
- [ ] This pull request introduces breaking change.

### Description

The img tag for an avatar via Gravatar now specifies the width and
height of the image.

Providing these attributes helps to avoid Cumulative Layout Shift.
Avoiding this improves the page speed ranking of the page.

### Issues Resolved

There is no corresponding issue.

### Checklist

Put an `x` into the box(es) that apply:

#### General

- [x] Describe what changes are being made
- [x] Explain why and how the changes were necessary and implemented
respectively
- [x] Reference issue with `#<ISSUE_NO>` if applicable

#### Resources

- [x] If you have changed any SCSS code, run `make release` to
regenerate all CSS files

#### Contributors

- [X] Add yourself to `CONTRIBUTORS.md` if you aren't on it already

Co-authored-by: Oliver B. Fischer <o.b.fischer@swe-blog.net>
Co-authored-by: Luiz F. A. de PrĂ¡ <luizdepra@users.noreply.github.com>
2 files modified
3 ■■■■ changed files
CONTRIBUTORS.md 1 ●●●● diff | view | raw | blame | history
layouts/_partials/home/avatar.html 2 ●●● diff | view | raw | blame | history