支持 Emoji 表情

Emoji 可以通过多种方式在 Hugo 项目中启用。

emojify 方法可以直接在模板中调用, 或者使用 行内 Shortcodes .

要全局使用 emoji, 需要在你的 网站配置 中设置 enableEmojitrue, 然后你就可以直接在文章中输入 emoji 的代码。

它们以冒号开头和结尾,并且包含 emoji 的 代码

1
2
3
去露营啦! {:}tent: 很快就回来.

真开心! {:}joy:

呈现的输出效果如下:

去露营啦! ⛺ 很快就回来。

真开心! 😂

以下符号清单是 emoji 代码的非常有用的参考。

表情与情感

笑脸表情

图标 代码 图标 代码
😀 grinning 😃 smiley
😄 smile 😁 grin
😆 laughing
satisfied
😅 sweat_smile
🤣 rofl 😂 joy
🙂 slightly_smiling_face 🙃 upside_down_face
😉 wink 😊 blush
😇 innocent

爱意表情

图标 代码 图标 代码
😍 heart_eyes 😘 kissing_heart
😗 kissing ☺️ relaxed
😚 kissing_closed_eyes 😙 kissing_smiling_eyes

吐舌头表情

图标 代码 图标 代码
😋 yum 😛 stuck_out_tongue
😜 stuck_out_tongue_winking_eye 😝 stuck_out_tongue_closed_eyes
🤑 money_mouth_face

国家和地区旗帜

图标 代码 图标 代码
🇦🇩 andorra 🇦🇪 united_arab_emirates
🇦🇫 afghanistan 🇦🇬 antigua_barbuda
🇦🇮 anguilla 🇦🇱 albania
🇦🇲 armenia 🇦🇴 angola
🇦🇶 antarctica 🇦🇷 argentina
🇦🇸 american_samoa 🇦🇹 austria
🇦🇺 australia 🇦🇼 aruba
🇦🇽 aland_islands 🇦🇿 azerbaijan
🇧🇦 bosnia_herzegovina 🇧🇧 barbados
🇧🇩 bangladesh 🇧🇪 belgium
🇧🇫 burkina_faso 🇧🇬 bulgaria
🇧🇭 bahrain 🇧🇮 burundi
🇧🇯 benin 🇧🇱 st_barthelemy
🇧🇲 bermuda 🇧🇳 brunei
🇧🇴 bolivia 🇧🇶 caribbean_netherlands
🇧🇷 brazil 🇧🇸 bahamas
🇧🇹 bhutan 🇧🇼 botswana
🇧🇾 belarus 🇧🇿 belize
🇨🇦 canada 🇨🇨 cocos_islands
🇨🇩 congo_kinshasa 🇨🇫 central_african_republic
🇨🇬 congo_brazzaville 🇨🇭 switzerland
🇨🇮 cote_divoire 🇨🇰 cook_islands
🇨🇱 chile 🇨🇲 cameroon
🇨🇳 cn 🇨🇴 colombia
🇨🇷 costa_rica 🇨🇺 cuba
🇨🇻 cape_verde 🇨🇼 curacao
🇨🇽 christmas_island 🇨🇾 cyprus
🇨🇿 czech_republic 🇩🇪 de
🇩🇯 djibouti 🇩🇰 denmark
🇩🇲 dominica 🇩🇴 dominican_republic
🇩🇿 algeria 🇪🇨 ecuador
🇪🇪 estonia 🇪🇬 egypt
🇪🇭 western_sahara 🇪🇷 eritrea
🇪🇸 es 🇪🇹 ethiopia
🇪🇺 eu
european_union
🇫🇮 finland
🇫🇯 fiji 🇫🇰 falkland_islands
🇫🇲 micronesia 🇫🇴 faroe_islands
🇫🇷 fr 🇬🇦 gabon
🇬🇧 gb
uk
🇬🇩 grenada
🇬🇪 georgia 🇬🇫 french_guiana
🇬🇬 guernsey 🇬🇭 ghana
🇬🇮 gibraltar 🇬🇱 greenland
🇬🇲 gambia 🇬🇳 guinea
🇬🇵 guadeloupe 🇬🇶 equatorial_guinea
🇬🇷 greece 🇬🇸 south_georgia_south_sandwich_islands
🇬🇹 guatemala 🇬🇺 guam
🇬🇼 guinea_bissau 🇬🇾 guyana
🇭🇰 hong_kong 🇭🇳 honduras
🇭🇷 croatia 🇭🇹 haiti
🇭🇺 hungary 🇮🇨 canary_islands
🇮🇩 indonesia 🇮🇪 ireland
🇮🇱 israel 🇮🇲 isle_of_man
🇮🇳 india 🇮🇴 british_indian_ocean_territory
🇮🇶 iraq 🇮🇷 iran
🇮🇸 iceland 🇮🇹 it
🇯🇪 jersey 🇯🇲 jamaica
🇯🇴 jordan 🇯🇵 jp
🇰🇪 kenya 🇰🇬 kyrgyzstan
🇰🇭 cambodia 🇰🇮 kiribati
🇰🇲 comoros 🇰🇳 st_kitts_nevis
🇰🇵 north_korea 🇰🇷 kr
🇰🇼 kuwait 🇰🇾 cayman_islands
🇰🇿 kazakhstan 🇱🇦 laos
🇱🇧 lebanon 🇱🇨 st_lucia
🇱🇮 liechtenstein 🇱🇰 sri_lanka
🇱🇷 liberia 🇱🇸 lesotho
🇱🇹 lithuania 🇱🇺 luxembourg
🇱🇻 latvia 🇱🇾 libya
🇲🇦 morocco 🇲🇨 monaco
🇲🇩 moldova 🇲🇪 montenegro
🇲🇬 madagascar 🇲🇭 marshall_islands
🇲🇰 macedonia 🇲🇱 mali
🇲🇲 myanmar 🇲🇳 mongolia
🇲🇴 macau 🇲🇵 northern_mariana_islands
🇲🇶 martinique 🇲🇷 mauritania
🇲🇸 montserrat 🇲🇹 malta
🇲🇺 mauritius 🇲🇻 maldives
🇲🇼 malawi 🇲🇽 mexico
🇲🇾 malaysia 🇲🇿 mozambique
🇳🇦 namibia 🇳🇨 new_caledonia
🇳🇪 niger 🇳🇫 norfolk_island
🇳🇬 nigeria 🇳🇮 nicaragua
🇳🇱 netherlands 🇳🇴 norway
🇳🇵 nepal 🇳🇷 nauru
🇳🇺 niue 🇳🇿 new_zealand
🇴🇲 oman 🇵🇦 panama
🇵🇪 peru 🇵🇫 french_polynesia
🇵🇬 papua_new_guinea 🇵🇭 philippines
🇵🇰 pakistan 🇵🇱 poland
🇵🇲 st_pierre_miquelon 🇵🇳 pitcairn_islands
🇵🇷 puerto_rico 🇵🇸 palestinian_territories
🇵🇹 portugal 🇵🇼 palau
🇵🇾 paraguay 🇶🇦 qatar
🇷🇪 reunion 🇷🇴 romania
🇷🇸 serbia 🇷🇺 ru
🇷🇼 rwanda 🇸🇦 saudi_arabia
🇸🇧 solomon_islands 🇸🇨 seychelles
🇸🇩 sudan 🇸🇪 sweden
🇸🇬 singapore 🇸🇭 st_helena
🇸🇮 slovenia 🇸🇰 slovakia
🇸🇱 sierra_leone 🇸🇲 san_marino
🇸🇳 senegal 🇸🇴 somalia
🇸🇷 suriname 🇸🇸 south_sudan
🇸🇹 sao_tome_principe 🇸🇻 el_salvador
🇸🇽 sint_maarten 🇸🇾 syria
🇸🇿 swaziland 🇹🇨 turks_caicos_islands
🇹🇩 chad 🇹🇫 french_southern_territories
🇹🇬 togo 🇹🇭 thailand
🇹🇯 tajikistan 🇹🇰 tokelau
🇹🇱 timor_leste 🇹🇲 turkmenistan
🇹🇳 tunisia 🇹🇴 tonga
🇹🇷 tr 🇹🇹 trinidad_tobago
🇹🇻 tuvalu 🇹🇼 taiwan
🇹🇿 tanzania 🇺🇦 ukraine
🇺🇬 uganda 🇺🇸 us
🇺🇾 uruguay 🇺🇿 uzbekistan
🇻🇦 vatican_city 🇻🇨 st_vincent_grenadines
🇻🇪 venezuela 🇻🇬 british_virgin_islands
🇻🇮 us_virgin_islands 🇻🇳 vietnam
🇻🇺 vanuatu 🇼🇫 wallis_futuna
🇼🇸 samoa 🇽🇰 kosovo
🇾🇪 yemen 🇾🇹 mayotte
🇿🇦 south_africa 🇿🇲 zambia
🇿🇼 zimbabwe