我可以将其添加以供将来参考。我遵循了 Replace Discourse's default SVG icons with custom icons in a theme - #19 上的说明,但我一开始没有意识到同一个图标可以被引用不同的方式。在应用程序本身,“/styleguide/atoms/icons”下列出了所有图标及其引用方式,因此在我的 header.html 文件中,我现在有 5 个对信封图标的引用:
api.replaceIcon('envelope', 'fgx-air-mail');
api.replaceIcon('far-envelope', 'fgx-air-mail');
api.replaceIcon('notification.private_message', 'fgx-air-mail');
api.replaceIcon('notification.read_private_message', 'fgx-air-mail');
api.replaceIcon('notification.invited_to_private_message', 'fgx-air-mail');