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图标显示不全 #450

Closed
huberylee opened this issue Oct 23, 2015 · 5 comments
Closed

侧边栏社交链接Font awesome图标显示不全 #450

huberylee opened this issue Oct 23, 2015 · 5 comments

Comments

@huberylee
Copy link

侧边栏社交链接图标显示不全,看了一下代码,作者应该是直接将链接的名称加在fa-的后面从Font awesome中获取对应图标的,但有些图标可能不存在,所以就出现的部分图标不显示的问题,作者看看有什么解决方法呢?
screen shot 2015-10-23 at 10 32 44 pm
screen shot 2015-10-23 at 10 27 44 pm

@iissnan
Copy link
Owner

iissnan commented Oct 25, 2015

确实有一个方案。与 Menu 的 icon 定制方式一样,社交链接也提供了一个称为 Icon Mapping 的方法。
示例配置如下:

# Social links
social:
  GitHub: http://github.com
  知乎: http://zhihu.com

social_icons:
  enable: true
  # Icon Mappings
  GitHub: github
  Twitter: twitter
   知乎: global

@iissnan
Copy link
Owner

iissnan commented Oct 25, 2015

social_iconskey 对应 social 中的 key ,Map 到的 value 将作为 icon 的名字,NexT 会自动加上 fa- 前缀。

@tracelessspring
Copy link

你好,在我通过git pull得到的最近版本的_config.yml文件中,没有social_icons:这一项,只有menu_icons:,而且添加:
social_icons:
enable: true
GitHub: github
后会报错,求问如何解决?

@iissnan
Copy link
Owner

iissnan commented Oct 26, 2015

social_icons 目前在 pisces 分支上

@iissnan
Copy link
Owner

iissnan commented Oct 29, 2015

@tracelessspring social_iconsmaster 分支上现已可用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants