sidebar timeline
This commit is contained in:
parent
0116048ec4
commit
10d834fdab
|
@ -1,4 +1,4 @@
|
||||||
|
# 不要直接在这里写,要复制到 blog/source/_data/links.yml 位置
|
||||||
'示例':
|
'示例':
|
||||||
- title: XAOXUU
|
- title: XAOXUU
|
||||||
avatar: https://bu.dusays.com/2021/09/24/2f74810ceb3d3.png
|
avatar: https://bu.dusays.com/2021/09/24/2f74810ceb3d3.png
|
||||||
|
|
|
@ -67,4 +67,6 @@ timeline:
|
||||||
layout: timeline
|
layout: timeline
|
||||||
title: 近期动态
|
title: 近期动态
|
||||||
api: # https://api.github.com/repos/xaoxuu/hexo-theme-stellar/issues
|
api: # https://api.github.com/repos/xaoxuu/hexo-theme-stellar/issues
|
||||||
user:
|
user: # 默认显示所有人的数据,设置名称可过滤为仅显示某人的数据,多个名称用英文逗号隔开,不要加空格
|
||||||
|
type: # 默认不用写,如果是友链朋友圈数据请写 fcircle
|
||||||
|
limit: # 默认通过 api 上增加 per_page 来设置,如果是友链朋友圈,可通过这个设置数量
|
||||||
|
|
|
@ -11,8 +11,8 @@ function layoutDiv() {
|
||||||
el += '</div>';
|
el += '</div>';
|
||||||
}
|
}
|
||||||
el += '<div class="widget-body fs14">';
|
el += '<div class="widget-body fs14">';
|
||||||
el += '<div class="tag-plugin timeline stellar-timeline-api"';
|
el += '<div class="tag-plugin timeline stellar-' + (item.type || "timeline") + '-api"';
|
||||||
['api', 'user', 'hide'].forEach(key => {
|
['api', 'user', 'hide', 'limit'].forEach(key => {
|
||||||
if (item[key]) {
|
if (item[key]) {
|
||||||
el += ' ' + key + '="' + item[key] + '"';
|
el += ' ' + key + '="' + item[key] + '"';
|
||||||
}
|
}
|
||||||
|
|
|
@ -120,6 +120,7 @@
|
||||||
span
|
span
|
||||||
color: inherit
|
color: inherit
|
||||||
a.body
|
a.body
|
||||||
|
display: block
|
||||||
color: var(--text-p1)
|
color: var(--text-p1)
|
||||||
trans2: transform box-shadow
|
trans2: transform box-shadow
|
||||||
line-height: 1.25
|
line-height: 1.25
|
||||||
|
|
Loading…
Reference in New Issue