Hexo Next 友链配置
Created|Updated
|Word Count:367|Reading Time:1mins|Post Views:
在进行配置 Hexo Next
的友情链接的时候遇到了一些麻烦,特此进行记录如何进行 Hexo Next
友链的配置。
创建一个友链界面
首先像创建其他的菜单栏一样创建一个新的菜单
然后呢,需要在主题的_config.yml
文件中进行如下配置,即在最后一行加上links: /links/ || fa fa-link
1 2 3 4 5 6 7 8 9 10
| menu: home: / || fa fa-home tags: /tags/ || fa fa-tags archives: /archives/ || fa fa-archive about: /about/ || fa fa-user links: /links/ || fa fa-link
|
写友链
1
| blog/source/links/index.md
|
在index.md
中写入以下内容便是配置完成啦!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| --- title: 友情链接 type: links ---
以下为本站的友情链接。
{% linkgrid %} 周涛的站点 | https://zepoch.github.io | 记录我的工作学习与生活 | https://cdn.jsdelivr.net/gh/zEpoch/imageHome@main/avatar.png
{% endlinkgrid %}
如有意交换友情链接,可在评论区留言,格式参考下方。为了确保头像显示正确,建议使用 Gravatar 或者 jsDelivr 等服务。如果需要更新博客信息,请留言回复。
{% note success %}
- 名称:周涛的站点 - 网址:https://zepoch.github.io/ - 简介:记录我的工作学习与生活 - 头像:https://cdn.jsdelivr.net/gh/zEpoch/imageHome@main/avatar.png
{% endnote %}
请您务必确保域名解析正确、https 证书有效且服务器工作正常。
|
参考
Link
Grid | NexT (theme-next.js.org)