Skip to content

Add matrix_icon shortcode for inline emoji-sized Matrix icon#3124

Closed
ayush-gupta18-hub wants to merge 1 commit intomatrix-org:mainfrom
ayush-gupta18-hub:add-matrix-icon-shortcode
Closed

Add matrix_icon shortcode for inline emoji-sized Matrix icon#3124
ayush-gupta18-hub wants to merge 1 commit intomatrix-org:mainfrom
ayush-gupta18-hub:add-matrix-icon-shortcode

Conversation

@ayush-gupta18-hub
Copy link
Copy Markdown

@ayush-gupta18-hub ayush-gupta18-hub commented Dec 25, 2025

Description

Adds a reusable Zola shortcode named matrix_icon that renders the existing
favicon SVG inline at emoji-size (1em), so it aligns consistently with text
and other emoji-sized icons.

This makes it easier to include the Matrix icon inline in content without
having to insert or manually resize image assets.

The shortcode loads the favicon SVG and wraps it in a small styled span to
ensure consistent size and vertical alignment.

Usage: {{ matrix_icon() }}

Note: While working on this, I confirmed that the site is built with Zola
rather than Hugo, so the helper is implemented as a Zola shortcode.

Related issues

Fixes #3106

Role

Individual contributor

Timeline

No specific deadline — review at your convenience

Signoff

Please sign off your individual commits or whole pull request.
All commits in this PR are signed off.

@ayush-gupta18-hub ayush-gupta18-hub requested a review from a team as a code owner December 25, 2025 20:27
@HarHarLinks HarHarLinks added enhancement This would be an improvement to the website. aesthetic Visual inconsistencies or improvements labels Dec 26, 2025
@ayush-gupta18-hub
Copy link
Copy Markdown
Author

hey @MTRNord could you please review my PR and tell me if any changes are needed and would love to get feedback from your side

@MTRNord
Copy link
Copy Markdown
Contributor

MTRNord commented Jan 6, 2026

#3125 was merged instead. Thanks for the contribution. You can have a look at #3125 (review) to learn why I chose that one over this PR. :)

Also for the next time make sure to follow https://github.com/matrix-org/matrix.org/blob/main/CONTRIBUTING.md#sign-off without this step we would have not been able to accept this PR.

@MTRNord MTRNord closed this Jan 6, 2026
@ayush-gupta18-hub
Copy link
Copy Markdown
Author

Thanks for reviewing my PR and for the feedback
I’ll review the other PR to understand the improvements and learn from the approach that was merged.
I’ve also taken note of the sign-off requirements and will make sure to follow the CONTRIBUTING guidelines correctly in future contributions.
can you please tell me if there is any community discussion channel? it would be of great help

@MTRNord
Copy link
Copy Markdown
Contributor

MTRNord commented Jan 8, 2026

can you please tell me if there is any community discussion channel? it would be of great help

Yes we have a matrix channel available at https://matrix.to/#/#matrix.org-website:matrix.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

aesthetic Visual inconsistencies or improvements enhancement This would be an improvement to the website.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a helper to include an emoji-sized Matrix icon

3 participants