Add matrix_icon shortcode for inline emoji-sized Matrix icon #3124
+3
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Adds a reusable Zola shortcode named
matrix_iconthat renders the existingfavicon 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.