NexT的认识及使用技巧

NexT是什么

Hexo 的一种主题,Elegant Theme for Hexo 。

使用技巧

(官方使用文档)

侧边栏添加头像

    1. ./themes/next/_config.yml 找到 avatar 打开注释:
# Sidebar Avatar
# in theme directory(source/images): /images/avatar.gif
# in site  directory(source/uploads): /uploads/avatar.gif
avatar: /images/avatar.gif
    1. 添加 avatar.gif 图片,两个路径二选一即可:
./images/avatar.gif      // in theme directory(source/images)
./uploads/avatar.gif     // in site  directory(source/uploads)

侧边栏添加社交信息

  • ./themes/next/_config.yml 找到 social 打开注释:
# Social Links.
# Usage: `Key: permalink || icon`
# Key is the link label showing to end users.
# Value before `||` delimeter is the target permalink.
# Value after `||` delimeter is the name of FontAwesome icon. If icon (with or without delimeter) is not specified, globe icon will be loaded.
social:
  GitHub: https://github.com/yourname || github
  E-Mail: mailto:[email protected] || envelope
  #Google: https://plus.google.com/yourname || google
  #Twitter: https://twitter.com/yourname || twitter
  #FB Page: https://www.facebook.com/yourname || facebook
  #VK Group: https://vk.com/yourname || vk
  StackOverflow: https://stackoverflow.com/yourname || stack-overflow
  #YouTube: https://youtube.com/yourname || youtube
  #Instagram: https://instagram.com/yourname || instagram
  #Skype: skype:yourname?call|chat || skype
  • 添加微博、知乎等:
Weibo: http://weibo.com/your-user-name || weibo

|| 之后是FontAwesome上icon的名字。

侧边栏添加友情链接

  • ./themes/next/_config.yml 更改以下配置:
#links:
  #Title: http://example.com/
// 更改如下
links:
   Sherlock's Blog: http://zynlo.xyz

你可能感兴趣的:(NexT的认识及使用技巧)