hugo-mod-twemoji 📦
Twemoji (Twitter Emoji) is an open source library of over 3,000 Unicode emojis in both PNG and SVG formats. It also provides a script to swap out system-native emojis for these graphics to achieve a uniform appearance across all browsers and platforms.
This Hugo Module can be used to import the Twemoji graphics and scripts locally into your Hugo project, rather than making external calls to Twitter's CDN.
Usage
Add the module to your Hugo project's config.toml
:
[module]
[[module.imports]]
path = "github.com/jakejarvis/hugo-mod-twemoji"
The graphics will be mounted in static/twemoji/png
and static/twemoji/svg
, and the scripts in static/twemoji/js
.
License
Twemoji graphics are licensed under Creative Commons Attribution 4.0 International (CC-BY-4.0) by Twitter, Inc. and other contributors. Code is licensed under the MIT License.
Refer to the main Twemoji repository or website for more information.