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

找不到指定的Font Awesome图标 #216

Open
0xlilim opened this issue Oct 30, 2022 · 0 comments
Open

找不到指定的Font Awesome图标 #216

0xlilim opened this issue Oct 30, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@0xlilim
Copy link

0xlilim commented Oct 30, 2022

首先感谢作者制作如此优秀精良的主题,方便我们搭建自己的博客和乐园。
我现在遇到了一个奇怪的问题,在 homepage 下的 about.md 中的社交媒体部分添加 RSS 订阅图标 时失败了。
我按照 文档 中提到的修改iconPack和icon内容分别为: fas 和 rss 后,依旧无法显示图标。配置如下:

social:
  - icon: envelope
    iconPack: fas
    url: mailto:0xlilim@proton.me
  - icon: twitter
    iconPack: fab
    url: https://twitter.com/0xlilim
  - icon: github
    iconPack: fab
    url: https://github.com/0xlilim
  - icon: rss
    iconPack: fas
    url: https://www.wangchucheng.com/zh/index.xml

一开始我以为没有包含到 rss 的图标,但是我进入到 cd /var/folders/zs/gdxt3dpx46l91h67f2tztbbh0000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/wangchuche ng.com/hugo-eureka@v0.9.3/_vendor/github.com/FortAwesome/Font-Awesome/js-packages/@fortawesome/free-solid-svg- icons/ 目录下却发现了它们的存在,查看他们的js内容也是正确的图标:

391 Oct 29 23:20 faRss.d.ts
1239 Oct 29 23:20 faRss.js
397 Oct 29 23:20 faRssSquare.d.ts
]1317 Oct 29 23:20 faRssSquare.js

我尝试过清除浏览器,更换浏览器,重新生成静态文件。可是 RSS 的图标依旧找不到(问号与叹号交替闪烁)

目前版本,使用Hugo Modules方式部署:

  • go 1.19.2
  • hugo v0.104.3+extended darwin/amd64 BuildDate=unknown
  • hugo-eureka@v0.9.3

所以目前这个情况我该如何继续排查问题?能否请您提供一些帮助?十分感谢!

@0xlilim 0xlilim added the bug Something isn't working label Oct 30, 2022
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

1 participant