Create a page for friendlinks #126
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
(感觉把友链放在小卡片上有点怪怪的,所以加了一个 Page 来放友链,具体效果如图所示)
原本的思路是专门写一个
page.ejs,但是后来因为 hexo 的_config.yml中有一个default_layout: post,折腾了好久都没法正常用上page.ejs,所以干脆直接把 Page 界面的设计写到post.ejs文件里了(1. 新建 friends 页面
2. 修改页面类型
修改
source/friends/index.md文件,内容如下:3. 添加友链信息
友链信息部分的话,在
themes/particlex/_config.yml文件的末尾可以配置,结构如下: