Skip to content

Conversation

@vitorvasc
Copy link
Member

Before

image

After

image

/cc @chalin @svrnm

@vitorvasc vitorvasc requested a review from a team as a code owner November 21, 2025 09:36
@vitorvasc vitorvasc added the docs:CI/infra CI & infrastructure label Nov 21, 2025
@svrnm
Copy link
Member

svrnm commented Nov 21, 2025

hm... my understanding would be that by enableEmojify this works out of the box? So no changes to the shortcodes are required, or do I misread something in their docs:

https://gohugo.io/quick-reference/emojis/

@chalin
Copy link
Contributor

chalin commented Nov 21, 2025

Let me take a look once I'm done debugging the pt/pt-br i18n bundle issue.
(Btw, the alert shortcode from this repo is going away very soon since Docsy provides the one we want to use.)

@vitorvasc
Copy link
Member Author

hm... my understanding would be that by enableEmojify this works out of the box? So no changes to the shortcodes are required, or do I misread something in their docs:

gohugo.io/quick-reference/emojis

I added the enableEmojify property to the config file and ran a couple tests, emojis on regular pages worked fine, but the alert shortcode was still rendering them as plain text.

Further down in the same Hugo docs page, there's a note about this:

To process an emoji shortcode from within a template, use the emojify function or pass the string through the RenderString method on a Page object

So my last test was adding the emojify function to the alerts shortcode, and that's when it started working. Ideally, it'd be great if enableEmojify handled this automatically, otherwise we might need to update all shortcodes to ensure emojis will render correctly. 🤔

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

Labels

docs:CI/infra CI & infrastructure

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Enable emojis in docs builds

3 participants