Skip to content

feat: responsive avatar image size#1077

Closed
xiaoxiyao wants to merge 1 commit intoCaiJimmy:masterfrom
xiaoxiyao:avatar
Closed

feat: responsive avatar image size#1077
xiaoxiyao wants to merge 1 commit intoCaiJimmy:masterfrom
xiaoxiyao:avatar

Conversation

@xiaoxiyao
Copy link
Copy Markdown
Contributor

@xiaoxiyao xiaoxiyao commented Oct 12, 2024

@CaiJimmy
Copy link
Copy Markdown
Owner

I think the current setting is good enough: the maximum size of the avatar is 150x150. The theme generates a single image of 300x300, which covers 1x and 2x. This PR will generate 3 images instead.

@ElastiCourse
Copy link
Copy Markdown

It would be really nice to use plain SVG as site logo. The resize command ran against Hugo pipelines is hard coded and doesn't adhere to the disabled image processing in Hugo config.

@xiaoxiyao
Copy link
Copy Markdown
Contributor Author

This is for loading smaller images on screens with low pixel ratios to improve loading speed.
And, the maximum size of the avatar is 120x120

--sidebar-avatar-size: 120px;

@CaiJimmy
Copy link
Copy Markdown
Owner

Sorry for the late reply, but I think I'll close this pull request for now, since it's no longer relevant (also because in the v4 version avatar is no longer resized). Thanks again for the pull request.

@CaiJimmy CaiJimmy closed this Feb 17, 2026
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

Successfully merging this pull request may close these issues.

3 participants