Skip to content

Commit

Permalink
Functional testing
Browse files Browse the repository at this point in the history
  • Loading branch information
BNDong committed Jul 4, 2024
1 parent 0154646 commit f724433
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 59 deletions.
2 changes: 1 addition & 1 deletion dist/simpleMemory.js

Large diffs are not rendered by default.

Binary file modified dist/simpleMemory.js.gz
Binary file not shown.

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/style/fonticon.5250a635.css

This file was deleted.

Binary file removed dist/style/fonticon.5250a635.css.gz
Binary file not shown.
1 change: 1 addition & 0 deletions dist/style/fonticon.6c06152d.css

Large diffs are not rendered by default.

Binary file added dist/style/fonticon.6c06152d.css.gz
Binary file not shown.
3 changes: 2 additions & 1 deletion docs/v2.1/docs/src/changelog/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
## 2024.07.04 - v2.1.5
* 文章页复制内容携带版权信息 [(#429)](https://github.com/BNDong/Cnblogs-Theme-SimpleMemory/pull/429)
* 文章页评论框打字动效 [(#431)](https://github.com/BNDong/Cnblogs-Theme-SimpleMemory/pull/431)

* 友链页增加配置 [(#435)](https://github.com/BNDong/Cnblogs-Theme-SimpleMemory/pull/435)

## 2024.01.02 - v2.1.4
* 修改了博客运行时间的文字描述
* 调整了“今日诗词”获取的方式
Expand Down
98 changes: 43 additions & 55 deletions docs/v2.1/docs/src/reference/links.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,68 +29,50 @@
友链的配置,可以参考其他[配置](/reference/configs)的方式。例如:

```javascript
window.cnblogsConfig = {
window.cnblogsConfig = [
links: {
page: [
{
name: 'BNDong', // 昵称
introduction: 'IT技术类博客', // 简介
avatar: 'https://blog.dbnuo.com/images/avatar.gif', // 头像
url: 'https://blog.dbnuo.com' // 友链地址
},
],
},
}
"title": "友情链接", // 标题
"icon": "icon-weibiaoti22", // 标题图标
"style": "color: #a78bfa;", // 标题样式
"links": [
{
name: 'BNDong', // 昵称
introduction: 'IT技术类博客', // 简介
avatar: 'https://blog.dbnuo.com/images/avatar.gif', // 头像
url: 'https://blog.dbnuo.com' // 友链地址
}
]
}
]
}
];
```

此配置可以单独出来。例如:

```javascript

// 正常配置
window.cnblogsConfig = {
links: {},
};

// 友链配置
window.cnblogsConfig.links.page = [
{
name: 'BNDong',
introduction: 'IT技术类博客',
avatar: 'https://blog.dbnuo.com/images/avatar.gif',
url: 'https://blog.dbnuo.com'
},
{
name: 'BNDong',
introduction: 'IT技术类博客',
avatar: 'https://blog.dbnuo.com/images/avatar.gif',
url: 'https://blog.dbnuo.com'
},
{
name: 'BNDong',
introduction: 'IT技术类博客',
avatar: 'https://blog.dbnuo.com/images/avatar.gif',
url: 'https://blog.dbnuo.com'
},
{
name: 'BNDong',
introduction: 'IT技术类博客',
avatar: 'https://blog.dbnuo.com/images/avatar.gif',
url: 'https://blog.dbnuo.com'
},
{
name: 'BNDong',
introduction: 'IT技术类博客',
avatar: 'https://blog.dbnuo.com/images/avatar.gif',
url: 'https://blog.dbnuo.com'
},
// 正常配置
window.cnblogsConfig = {
links: {},
};

// 友链页配置
window.cnblogsConfig.links.page = [
{
"title": "友情链接",
"icon": "icon-weibiaoti22",
"style": "color: #a78bfa;",
"links": [
{
name: 'BNDong',
introduction: 'IT技术类博客',
avatar: 'https://blog.dbnuo.com/images/avatar.gif',
url: 'https://blog.dbnuo.com'
},
{
{
name: 'BNDong',
introduction: 'IT技术类博客',
avatar: 'https://blog.dbnuo.com/images/avatar.gif',
Expand All @@ -101,15 +83,21 @@ window.cnblogsConfig = {
introduction: 'IT技术类博客',
avatar: 'https://blog.dbnuo.com/images/avatar.gif',
url: 'https://blog.dbnuo.com'
},
];
}
]
}
];
```

请按照此格式配置。

| **Key** | **Description** |
| :--------------: | :-------------: |
| **name** | 昵称 |
| **introduction** | 简介 |
| **avatar** | 头像 |
| **url** | 友链地址 |
| **Key** | **Description** |
| :------------------------------- | :-------------- |
| **title** | 友链标题 |
| **icon** | 标题图标 |
| **style** | 标题扩展样式 |
| **links** | 标题下友链配置 |
| **links[<i>n</i>].name** | 昵称 |
| **links[<i>n</i>].introduction** | 简介 |
| **links[<i>n</i>].avatar** | 头像 |
| **links[<i>n</i>].url** | 友链地址 |

0 comments on commit f724433

Please sign in to comment.