dillonzq / LoveIt

❤️A clean, elegant but advanced blog theme for Hugo 一个简洁、优雅且高效的 Hugo 主题
https://hugoloveit.com
MIT License
3.34k stars 1.07k forks source link

[FEATURE] Using local icons/svg in titile and menu ("pre") 如何使用本地SVG文件作为图标 #856

Open megastarmie opened 9 months ago

megastarmie commented 9 months ago

Describe the feature you want 描述你的功能需求

Hi, I would like to use local svg as the icon for the title and menu instead of font awesome. I notice there is a pre = "" for the title and menu tap in config.toml, but what kind of information/code should I use to load the local svg? Thanks!

最近需要用到本地svg作图标, 用在导航栏。 config.toml文件中有 pre ="" 的选项,想了解一下怎么调用本地svg

感谢!