Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hexo主题下font awesome图标无法显示 #1298

Closed
LooseLi opened this issue Jul 21, 2023 · 3 comments
Closed

Hexo主题下font awesome图标无法显示 #1298

LooseLi opened this issue Jul 21, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@LooseLi
Copy link
Contributor

LooseLi commented Jul 21, 2023

描述bug
Hexo主题下,自定义二级菜单时,Font Awesome图标无法正常显示

复现步骤
Hexo主题下,自定义二级菜单时,Font Awesome图标无法正常显示

期望的正常结果
Hexo主题下,应该正常显示icon图标

截图
image
image
image

环境

  • 操作系统: macOS
  • 浏览器 chrome
  • NotionNext版本 4.0.2
  • 主题 hexo

补充说明
与问题相关的其它说明

@LooseLi LooseLi added the bug Something isn't working label Jul 21, 2023
@tanglyqq
Copy link

感谢反馈,bug已修复,原因是配置文件的变量名冲突。

请更新代码,并重新检查后台环境变量,NEXT_PUBLIC_FONT_AWESOME_PATH 这个变量的值不能为false

 FONT_AWESOME: process.env.NEXT_PUBLIC_FONT_AWESOME_PATH || 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css', // font-awesome 字体图标地址; 可选 /css/all.min.css , https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/font-awesome/6.0.0/css/all.min.css

 CUSTOM_RIGHT_CLICK_CONTEXT_MENU: process.env.NEXT_PUBLIC_CUSTOM_RIGHT_CLICK_CONTEXT_MENU || true, // 自定义右键菜单,覆盖系统菜单

@tangly1024
Copy link
Owner

相关代码 175fc85

@LooseLi
Copy link
Contributor Author

LooseLi commented Jul 24, 2023

感谢反馈,bug已修复,原因是配置文件的变量名冲突。

请更新代码,并重新检查后台环境变量,NEXT_PUBLIC_FONT_AWESOME_PATH 这个变量的值不能为false

 FONT_AWESOME: process.env.NEXT_PUBLIC_FONT_AWESOME_PATH || 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css', // font-awesome 字体图标地址; 可选 /css/all.min.css , https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/font-awesome/6.0.0/css/all.min.css

 CUSTOM_RIGHT_CLICK_CONTEXT_MENU: process.env.NEXT_PUBLIC_CUSTOM_RIGHT_CLICK_CONTEXT_MENU || true, // 自定义右键菜单,覆盖系统菜单

非常完美,感谢fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants