diff --git a/2023/01ea22618.html b/2023/01ea22618.html index 2b86b18b..f8f1e050 100644 --- a/2023/01ea22618.html +++ b/2023/01ea22618.html @@ -529,11 +529,11 @@

note 备注块

title: 标题(可选)
content: 内容
color: red/orange/yellow/green/cyan/blue/purple/light/dark/warning/error

-
-
-
-
-
+
+
+
+
+

poetry 诗词

游山西村
陆游

莫笑农家腊酒浑,丰年留客足鸡豚。
山重水复疑无路,柳暗花明又一村。
箫鼓追随春社近,衣冠简朴古风存。
从今若许闲乘月,拄杖无时夜叩门。

diff --git a/2023/022dbb2d2a.html b/2023/022dbb2d2a.html index 09d4a954..44d1e3f5 100644 --- a/2023/022dbb2d2a.html +++ b/2023/022dbb2d2a.html @@ -118,52 +118,52 @@

免费影视软件分享

今天就分享几个我收藏的几个,我自己认为比较好的安卓影视软件

都是免费的,大部分都可以添加自定义视频源,介绍我就不多说啦,兄弟们自己选择喜欢的用就OK啦!!

直接点击名字即可下载啦

-

⭕影视仓手机版 推荐

下载影视仓

2.0.3点击下载
密 码:w3oD

1.0.9点击下载
密 码:4602

1.0.6点击下载
密 码:5287

1.0.1点击下载
密 码: 56912

可以在设置区填写自己的 阿里token,看阿里专线非常方便!

5.0.9版点击下载
密 码:PYjs

5.0.5版点击下载 、 密码:402d

5.0.4版点击下载 、 密码:4602

5.0.3版点击下载 、 密码:5287

4.0.34版点击下载

4.0.22版点击下载 、 密码:490

关于版本:
影视仓TV版目前有三个系列:

  1. V3版,专供安卓4.4及以下系统,但由于实在太老仅仅是能使用。
  2. 4.0版本适合安卓版本5.0及以上使用。为目前稳定版本。
  3. 5.0版本为重构底层数据后发布的最新版本,速度更快体验更佳,适合安卓5.0以上系统;可能还存在某些稳定性问题。

这里面 获取token,进去后,点击Get Token 按钮,后面自行研究 (建议切换中文模式)

+

⭕影视仓手机版 推荐

下载影视仓

2.0.3点击下载
密 码:w3oD

1.0.9点击下载
密 码:4602

1.0.6点击下载
密 码:5287

1.0.1点击下载
密 码: 56912

可以在设置区填写自己的 阿里token,看阿里专线非常方便!

5.0.9版点击下载
密 码:PYjs

5.0.5版点击下载 、 密码:402d

5.0.4版点击下载 、 密码:4602

5.0.3版点击下载 、 密码:5287

4.0.34版点击下载

4.0.22版点击下载 、 密码:490

关于版本:
影视仓TV版目前有三个系列:

  1. V3版,专供安卓4.4及以下系统,但由于实在太老仅仅是能使用。
  2. 4.0版本适合安卓版本5.0及以上使用。为目前稳定版本。
  3. 5.0版本为重构底层数据后发布的最新版本,速度更快体验更佳,适合安卓5.0以上系统;可能还存在某些稳定性问题。

这里面 获取token,进去后,点击Get Token 按钮,后面自行研究 (建议切换中文模式)

-

⭕乐看视频

下载:乐看视频官网 【推荐】

下载就可以看了,不用折腾啥东西

画质 1080p 的,还不错,更新也比较块

每天使用之前会有一个广告,然后一整天都没有广告啦

乐看视频p1
乐看视频p2
乐看视频p3
+

⭕乐看视频

下载:乐看视频官网 【推荐】

下载就可以看了,不用折腾啥东西

画质 1080p 的,还不错,更新也比较块

每天使用之前会有一个广告,然后一整天都没有广告啦

乐看视频p1
乐看视频p2
乐看视频p3
-

⭕ AH视频

AH视频p1
AH视频p2
AH视频p3
AH视频p4
AH视频p5

这里我放几个大佬们制作分享的一些订阅源,复制后直接导入订阅就行啦

底部评论区 有最新的订阅源和导入方法,谢谢

1
2
3
4
5
6
7
8
9
10
11
12
13
14
花花: (推荐)
https://gitee.com/hhua0/ah/raw/master/ah
镇帝:
https://gitcode.net/zhendiya/ah/-/raw/master/zd

https://gitcode.net/jiuci/ah/-/raw/master/hy

https://wds.ecsxs.com/230307.json

https://ah.jkyw.xyz/xiaobai/qilifuziAH.json

https://wds.ecsxs.com/224969.json

https://wds.ecsxs.com/226166.json
+

⭕ AH视频

AH视频p1
AH视频p2
AH视频p3
AH视频p4
AH视频p5

这里我放几个大佬们制作分享的一些订阅源,复制后直接导入订阅就行啦

底部评论区 有最新的订阅源和导入方法,谢谢

1
2
3
4
5
6
7
8
9
10
11
12
13
14
花花: (推荐)
https://gitee.com/hhua0/ah/raw/master/ah
镇帝:
https://gitcode.net/zhendiya/ah/-/raw/master/zd

https://gitcode.net/jiuci/ah/-/raw/master/hy

https://wds.ecsxs.com/230307.json

https://ah.jkyw.xyz/xiaobai/qilifuziAH.json

https://wds.ecsxs.com/224969.json

https://wds.ecsxs.com/226166.json
-

⭕ 贝贝

下载地址:点击下载 | 密码:1111

贝贝最新地址备用地址1备用地址3

1
待更新

贝贝的软件里可以添加它提供的订阅源的哈

+

⭕ 贝贝

下载地址:点击下载 | 密码:1111

贝贝最新地址备用地址1备用地址3

1
待更新

贝贝的软件里可以添加它提供的订阅源的哈

-

⭕ EasyBox

地址:点击下载

EasyBox 是 TVBox 的安卓竖屏版,可以添加各种源。

可配置阿里token

使用方法

下方配置接口地址来自网络,任选其一,单个复制链接进行配置。

我的 –> 设置 –> 配置地址 –> 输入配置地址 –> 确定

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
https://raw.iqiq.io/liu673cn/box/main/m.json

https://hutool.ml/tang

http://miaotvs.cn/meow

https://raw.liucn.cc/box/m.json

https://try.gitea.io/xcxc8/mytv/raw/branch/main/TV.json

https://wds.ecsxs.com/223843.txt

https://pastebin.com/raw/gtbKvnE1

https://pastebin.com/raw/sbPpDm9G

https://agit.ai/hu/hcr/raw/branch/master/MMM.txt

https://freed.yuanhsing.cf/TVBox/meowcf.json

https://github.com/YuanHsing/freed/raw/master/TVBox/meow.json
+

⭕ EasyBox

地址:点击下载

EasyBox 是 TVBox 的安卓竖屏版,可以添加各种源。

可配置阿里token

使用方法

下方配置接口地址来自网络,任选其一,单个复制链接进行配置。

我的 –> 设置 –> 配置地址 –> 输入配置地址 –> 确定

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
https://raw.iqiq.io/liu673cn/box/main/m.json

https://hutool.ml/tang

http://miaotvs.cn/meow

https://raw.liucn.cc/box/m.json

https://try.gitea.io/xcxc8/mytv/raw/branch/main/TV.json

https://wds.ecsxs.com/223843.txt

https://pastebin.com/raw/gtbKvnE1

https://pastebin.com/raw/sbPpDm9G

https://agit.ai/hu/hcr/raw/branch/master/MMM.txt

https://freed.yuanhsing.cf/TVBox/meowcf.json

https://github.com/YuanHsing/freed/raw/master/TVBox/meow.json
-

⭕ 影迷

下载地址:点击下载

可配置阿里 token

+

⭕ 影迷

下载地址:点击下载

可配置阿里 token

-

⭕清风视频

清风视频 下载链接

白嫖飞云4K解析,高清蓝光资源

+

⭕清风视频

清风视频 下载链接

白嫖飞云4K解析,高清蓝光资源

-

⭕轻简视频

轻简视频纯净版 下载链接

+

⭕轻简视频

轻简视频纯净版 下载链接

-

⭕ 觅影

永久地址: 点击下载

也是内置订阅源的

也可以自己制作订阅源(但我不会)

+

⭕ 觅影

永久地址: 点击下载

也是内置订阅源的

也可以自己制作订阅源(但我不会)

⭕ 海阔世界

下载:海阔视界

里面的这个嗅觉浏览器也不错,推荐一下。

里面必须添加小程序才好玩,不然什么都没有的

可以到它的QQ频道,【进频道答案:新方圆小棉袄】里获取更多好玩的小程序哈,我就不一一列出来了。

-

⭕ 影音壳子

影音壳子 最新版

也需配置接口接口,同上面影视仓

+

⭕ 影音壳子

影音壳子 最新版

也需配置接口接口,同上面影视仓

-

⭕ SonicePro

下载地址:点击查看

密码:9ihe

复制后直接打开软件即可

(它会识别剪贴板的订阅,然后添加就行了)

1
SonicePlus://Ox6fMK0Z5XcWSAWT1F1h5WhWNowaMLwdm3515aVzmpD1L39lFPAykPSSmKRflPVglnhgMLEAL39PG0hgNaZdNwhgNPwzL38xIu6lFPAykPRfjbHgkX9yjKmfJKmylLASwunLNb6RNKSjl0NxrwryvvzRtZ6CHL5zHuwSG4E1L0ZoFvs5lvzZGzrZGzih5WhWlQEVlavWIW6cmpshlyAlF0hgjaZfNQZVkW0WMKZYmtzqGXvxHuDxHuDSFaHglxSVl30fMKSBjKSbFa0SlKHdkQwYFaHgkwhglQwWlPHxjK6ZFaAykPRWTr==
+

⭕ SonicePro

下载地址:点击查看

密码:9ihe

复制后直接打开软件即可

(它会识别剪贴板的订阅,然后添加就行了)

1
SonicePlus://Ox6fMK0Z5XcWSAWT1F1h5WhWNowaMLwdm3515aVzmpD1L39lFPAykPSSmKRflPVglnhgMLEAL39PG0hgNaZdNwhgNPwzL38xIu6lFPAykPRfjbHgkX9yjKmfJKmylLASwunLNb6RNKSjl0NxrwryvvzRtZ6CHL5zHuwSG4E1L0ZoFvs5lvzZGzrZGzih5WhWlQEVlavWIW6cmpshlyAlF0hgjaZfNQZVkW0WMKZYmtzqGXvxHuDxHuDSFaHglxSVl30fMKSBjKSbFa0SlKHdkQwYFaHgkwhglQwWlPHxjK6ZFaAykPRWTr==
-

⭕ 搜视Pro

地址: 点击下载

里面看上去和SonicePlus一样,但内置订阅源不同,
可以比较一下哪个比较好用,再选择用哪个,看你自己了🐾

1
EkanPlus://Uo9kOMrb8ZeYw8s9w8wJ8YmYP6LcONLiT28w8cXqT71pEbmlN2ztTtSkPMjXRYvmSczSBsfpRsvSBsDXRsrbQIvgSszk8YmYSt1XScKYEY9eT7HmSpfSBrmlPMjXRYqnCZKpE3KsC3amBcDlSovXS2rZQ6LkPsHrBcrvSMDiRtLaBcDlRLmlOs5lRMLfBcfpRsuYVG==
+

⭕ 搜视Pro

地址: 点击下载

里面看上去和SonicePlus一样,但内置订阅源不同,
可以比较一下哪个比较好用,再选择用哪个,看你自己了🐾

1
EkanPlus://Uo9kOMrb8ZeYw8s9w8wJ8YmYP6LcONLiT28w8cXqT71pEbmlN2ztTtSkPMjXRYvmSczSBsfpRsvSBsDXRsrbQIvgSszk8YmYSt1XScKYEY9eT7HmSpfSBrmlPMjXRYqnCZKpE3KsC3amBcDlSovXS2rZQ6LkPsHrBcrvSMDiRtLaBcDlRLmlOs5lRMLfBcfpRsuYVG==
-

⭕521影视

手机版 历史版本

需要自定义接口

+

⭕521影视

手机版 历史版本

需要自定义接口

-

⭕ 极速影院

下载地址:点击下载

不好用,不推荐

+

⭕ 极速影院

下载地址:点击下载

不好用,不推荐

diff --git a/2023/0470ef0bd0.html b/2023/0470ef0bd0.html index 8daa24be..c5f991ae 100644 --- a/2023/0470ef0bd0.html +++ b/2023/0470ef0bd0.html @@ -128,7 +128,7 @@

1
2
pin: true
swiper_thumbnail: https://cdn.jsdelivr.net/gh/gaoyanliang/cdn@main/blog/img/post/hello1.jpg
-

原文参考(图片)

+

原文参考(图片)

许可协议
diff --git a/2023/053934fc62.html b/2023/053934fc62.html index 0cebbbe0..bfb1af0c 100644 --- a/2023/053934fc62.html +++ b/2023/053934fc62.html @@ -114,22 +114,22 @@

📺 tvbox各种接口分享

更新中。。。无好坏先后顺序,请自行测试

-

点击右边按钮可复制👇

单线路接口

接口无先后好坏顺序,请自行测试,如果有觉得不错的,可以右侧边栏反馈给我,方便我有时间给它们按优劣排一下序,谢谢

道长
FongMi
巧儿
俊哥
小雅
菜妮丝
神器
云星
摸鱼4k
失眠的夜
Ray纯一骚零
双辉月明
香雅情
南风
无意
运输车
多多
高天流云 js
小米 小暴脾气
PG one
ok吊炸天
小白
老刘备
荷城茶秀
潇洒
日后开心
D佬魔改
月光宝盒
吾爱
星辰
分享者
不良帅
喵影视
万达
小胡
小马
看电影
猎狼
业余
榴莲
夜猫子
太平洋
二哈
短剧
心魔
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
+

点击右边按钮可复制👇

单线路接口

接口无先后好坏顺序,请自行测试,如果有觉得不错的,可以右侧边栏反馈给我,方便我有时间给它们按优劣排一下序,谢谢

道长
FongMi
巧儿
俊哥
小雅
菜妮丝
神器
云星
摸鱼4k
失眠的夜
Ray纯一骚零
双辉月明
香雅情
南风
无意
运输车
多多
高天流云 js
小米 小暴脾气
PG one
ok吊炸天
小白
老刘备
荷城茶秀
潇洒
日后开心
D佬魔改
月光宝盒
吾爱
星辰
分享者
不良帅
喵影视
万达
小胡
小马
看电影
猎狼
业余
榴莲
夜猫子
太平洋
二哈
短剧
心魔
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
-

多仓接口

点击右边按钮可复制👇

多多
欧歌
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
+

多仓接口

点击右边按钮可复制👇

多多
欧歌
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
-

单仓接口

点击右边按钮可复制👇

多多优选仓
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
+

单仓接口

点击右边按钮可复制👇

多多优选仓
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
-

直播接口

待更新。。
点击右边按钮可复制👇
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
+

直播接口

待更新。。
点击右边按钮可复制👇
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
-

本地接口

点击右边按钮可复制👇

待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新

本地接口配置说明

+

本地接口

点击右边按钮可复制👇

待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新

本地接口配置说明

⭕ 软件推荐

diff --git a/atom.xml b/atom.xml index e862f2ed..2471e374 100644 --- a/atom.xml +++ b/atom.xml @@ -291,7 +291,7 @@ 2023-05-19T14:38:58.000Z 2024-03-13T04:28:01.250Z - ⭕ 接口分享

多仓、单仓、单个等等,接口分享

本文章以后再整理更新

更新中。。。无好坏先后顺序,请自行测试

点击右边按钮可复制👇

单线路接口

接口无先后好坏顺序,请自行测试,如果有觉得不错的,可以右侧边栏反馈给我,方便我有时间给它们按优劣排一下序,谢谢

道长
FongMi
巧儿
俊哥
小雅
菜妮丝
神器
云星
摸鱼4k
失眠的夜
Ray纯一骚零
双辉月明
香雅情
南风
无意
运输车
多多
高天流云 js
小米 小暴脾气
PG one
ok吊炸天
小白
老刘备
荷城茶秀
潇洒
日后开心
D佬魔改
月光宝盒
吾爱
星辰
分享者
不良帅
喵影视
万达
小胡
小马
看电影
猎狼
业余
榴莲
夜猫子
太平洋
二哈
短剧
心魔
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新

多仓接口

点击右边按钮可复制👇

多多
欧歌
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新

单仓接口

点击右边按钮可复制👇

多多优选仓
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新

直播接口

待更新。。
点击右边按钮可复制👇
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新

本地接口

点击右边按钮可复制👇

待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新

本地接口配置说明

⭕ 软件推荐

⭕ 分享接口的网站

欧歌API

]]>
+ ⭕ 接口分享

多仓、单仓、单个等等,接口分享

本文章以后再整理更新

更新中。。。无好坏先后顺序,请自行测试

点击右边按钮可复制👇

单线路接口

接口无先后好坏顺序,请自行测试,如果有觉得不错的,可以右侧边栏反馈给我,方便我有时间给它们按优劣排一下序,谢谢

道长
FongMi
巧儿
俊哥
小雅
菜妮丝
神器
云星
摸鱼4k
失眠的夜
Ray纯一骚零
双辉月明
香雅情
南风
无意
运输车
多多
高天流云 js
小米 小暴脾气
PG one
ok吊炸天
小白
老刘备
荷城茶秀
潇洒
日后开心
D佬魔改
月光宝盒
吾爱
星辰
分享者
不良帅
喵影视
万达
小胡
小马
看电影
猎狼
业余
榴莲
夜猫子
太平洋
二哈
短剧
心魔
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新

多仓接口

点击右边按钮可复制👇

多多
欧歌
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新

单仓接口

点击右边按钮可复制👇

多多优选仓
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新

直播接口

待更新。。
点击右边按钮可复制👇
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新

本地接口

点击右边按钮可复制👇

待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新
待更新

本地接口配置说明

⭕ 软件推荐

⭕ 分享接口的网站

欧歌API

]]>
<h2 id="⭕-接口分享"><a href="#⭕-接口分享" class="headerlink" title="⭕ 接口分享"></a>⭕ 接口分享</h2><p>多仓、单仓、单个等等,接口分享</p> @@ -343,7 +343,7 @@ 2023-04-29T07:11:59.000Z 2024-01-13T09:15:31.088Z - 具体改动可以查看 MR

💢 添加自定义css

themes/stellar/source/css/_custom/ 目录中添加 swiperstyle.styl 文件

swiperstyle.styl 内代码,点击展开
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
div#swiper_container
background var(--card);
z-index auto
.blog-slider
position relative
border-radius 18px 18px 18px 18px
margin auto
padding: 10px
transition all .3s

.blog-slider__item
display flex
align-items center
&.swiper-slide-active
.blog-slider__img
img
opacity 1
transition-delay .3s
.blog-slider__content
& > *
opacity 1
transform none
& > *:nth-child(1)
transition-delay 0.3s
& > *:nth-child(2)
transition-delay 0.4s
& > *:nth-child(3)
transition-delay 0.5s
& > *:nth-child(4)
transition-delay 0.6s
& > *:nth-child(5)
transition-delay 0.7s
& > *:nth-child(6)
transition-delay 0.8s
& > *:nth-child(7)
transition-delay 0.9s
& > *:nth-child(8)
transition-delay 1s
& > *:nth-child(9)
transition-delay 1.1s
& > *:nth-child(10)
transition-delay 1.2s
& > *:nth-child(11)
transition-delay 1.3s
& > *:nth-child(12)
transition-delay 1.4s
& > *:nth-child(13)
transition-delay 1.5s
& > *:nth-child(14)
transition-delay 1.6s
& > *:nth-child(15)
transition-delay 1.7s



.blog-slider__img
width 300px
flex-shrink 0
height 200px
padding 10px
border-radius 20px
transform translateX(0px)
overflow hidden
&:after
content ''
position absolute
top 0
left 0
width 100%
height 80%
border-radius 15px
opacity 0.8
img
width 100%
height 80%
object-fit cover
display block
opacity 0
border-radius 5px
transition all .3s

.blog-slider__content
padding-right 50px
padding-left 25px
& > *
opacity 0
transform translateY(25px)
transition all .4s


.blog-slider__code
text-align left
color var(--text-p3)
margin-bottom 10px
display block
font-weight 500

.blog-slider__title
text-align left
font-size $fs-h3
font-weight 700
color var(--text-p1)
margin-bottom 15px
-webkit-line-clamp 1
display -webkit-box
overflow hidden
-webkit-box-orient vertical

.blog-slider__text
text-align left
font-size $fs-h5
color var(--text-p3)
-webkit-line-clamp 3
display -webkit-box
overflow hidden
-webkit-box-orient vertical
margin-bottom 15px
line-height 1.5em
width 100%
word-break break-all
word-wrap break-word

.blog-slider__button
display inline-flex
background-color var(--block)
padding 14px 14px
border-radius 15px
color var(--text-p1)
text-decoration none
font-weight 500
justify-content center
text-align center
letter-spacing 1px
display none
&:hover
background-color var(--block-hover)


.blog-slider .swiper-container-horizontal > .swiper-pagination-bullets, .blog-slider .swiper-pagination-custom, .blog-slider .swiper-pagination-fraction
bottom 10px
left 0
width 100%

.blog-slider__pagination
position absolute
z-index 1
right 20px
width 11px !important
text-align center
left auto !important
top 50%
bottom auto !important
transform translateY(-50%)
&.swiper-pagination-bullets
.swiper-pagination-bullet
margin 8px 0 !important
.swiper-pagination-bullet
width 11px
height 11px
display block
border-radius 10px
background #858585
opacity 0.2
transition all .3s
.swiper-pagination-bullet-active
opacity 1
background $color-theme
height 30px

@media screen and (max-width: 600px)
.blog-slider__pagination
transform translateX(-50%)
left 50% !important
top 320px
width 100% !important
display flex
justify-content center
align-items center

.blog-slider__pagination
&.swiper-pagination-bullets
.swiper-pagination-bullet
margin 0 5px !important

.blog-slider__pagination
.swiper-pagination-bullet-active
height 11px
width 30px

.blog-slider__button
display inline-flex
width 70%
.blog-slider__text
margin-bottom 40px

.blog-slider
min-height 350px
height auto
margin-bottom 10px

.blog-slider__content
margin-top 20px
text-align center
padding 0 30px

.blog-slider__item
flex-direction column

.blog-slider__img
.blog-slider__content
padding-left 10px
padding-right 10px

.blog-slider__pagination.swiper-pagination-clickable.swiper-pagination-bullets
top 230px
本站swiperstyle.styl代码,点击展开
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
div#swiper_container
background var(--card);
z-index auto
.blog-slider
position relative
border-radius 18px 18px 18px 18px
margin auto
padding: 10px
transition all .3s

.blog-slider__item
display flex
align-items center
&.swiper-slide-active
.blog-slider__img
img
opacity 1
transition-delay .3s
.blog-slider__content
& > *
opacity 1
transform none
& > *:nth-child(1)
transition-delay 0.3s
& > *:nth-child(2)
transition-delay 0.4s
& > *:nth-child(3)
transition-delay 0.5s
& > *:nth-child(4)
transition-delay 0.6s
& > *:nth-child(5)
transition-delay 0.7s
& > *:nth-child(6)
transition-delay 0.8s
& > *:nth-child(7)
transition-delay 0.9s
& > *:nth-child(8)
transition-delay 1s
& > *:nth-child(9)
transition-delay 1.1s
& > *:nth-child(10)
transition-delay 1.2s
& > *:nth-child(11)
transition-delay 1.3s
& > *:nth-child(12)
transition-delay 1.4s
& > *:nth-child(13)
transition-delay 1.5s
& > *:nth-child(14)
transition-delay 1.6s
& > *:nth-child(15)
transition-delay 1.7s



.blog-slider__img
width 300px
flex-shrink 0
height 200px
padding 10px
border-radius 20px
transform translateX(0px)
overflow hidden
&:after
content ''
position absolute
top 0
left 0
width 100%
height 80%
border-radius 15px
opacity 0.8
img
width 100%
height 80%
object-fit cover
display block
opacity 0
border-radius 5px
transition all .3s

.blog-slider__content
padding-right 50px
padding-left 25px
& > *
opacity 0
transform translateY(25px)
transition all .4s


.blog-slider__code
text-align left
font-size $fs-h5
color var(--text-p4)
margin-bottom 10px
display block
font-weight 500

.blog-slider__title
text-align left
font-size $fs-h3
font-weight 700
color var(--text-p1)
margin-bottom 15px
-webkit-line-clamp 1
display -webkit-box
overflow hidden
-webkit-box-orient vertical

.blog-slider__text
text-align left
font-size $fs-h5
color var(--text-p3)
-webkit-line-clamp 3
display -webkit-box
overflow hidden
-webkit-box-orient vertical
margin-bottom 15px
line-height 1.5em
width 100%
word-break break-all
word-wrap break-word

.blog-slider__button
display inline-flex
background-color var(--block)
padding 10px 10px
border-radius 15px
color var(--text-p1)
text-decoration none
font-weight 500
justify-content center
text-align center
letter-spacing 1px
display none
&:hover
background-color #00FFFF


.blog-slider .swiper-container-horizontal > .swiper-pagination-bullets, .blog-slider .swiper-pagination-custom, .blog-slider .swiper-pagination-fraction
bottom 10px
left 0
width 100%

.blog-slider__pagination
position absolute
z-index 1
right 20px
width 11px !important
text-align center
left auto !important
top 50%
bottom auto !important
transform translateY(-50%)
&.swiper-pagination-bullets
.swiper-pagination-bullet
margin 8px 0 !important
.swiper-pagination-bullet
width 11px
height 11px
display block
border-radius 10px
background #00FF00
opacity 0.2
transition all .3s
.swiper-pagination-bullet-active
opacity 1
background #FFA500
height 30px

@media screen and (max-width: 600px)
.blog-slider__pagination
transform translateX(-50%)
left 50% !important
top 320px
width 100% !important
display flex
justify-content center
align-items center

.blog-slider__pagination
&.swiper-pagination-bullets
.swiper-pagination-bullet
margin 0 5px !important

.blog-slider__pagination
.swiper-pagination-bullet-active
height 11px
width 30px

.blog-slider__button
display inline-flex
width 70%
background #87CEFA
.blog-slider__text
margin-bottom 10px

.blog-slider
min-height 350px
height auto
margin-bottom 10px

.blog-slider__content
margin-top 20px
text-align center
padding 0 30px

.blog-slider__item
flex-direction column

.blog-slider__img
.blog-slider__content
padding-left 10px
padding-right 10px

.blog-slider__pagination.swiper-pagination-clickable.swiper-pagination-bullets
top 230px

添加自定义文件之后需要在 themes/stellar/source/css/main.styl 中引用

1
2
// 自定义样式
@import '_custom/*'

💢 修改 themes/stellar/layout/_partial/scripts/index.ejs

添加如下代码:

1
2
3
4
5
// -------- start 自定义首页文章轮播
if ('<%- theme.customSwiperTopArticle.enable %>' == 'true') {
stellar.plugins.customSwiperTopArticle = Object.assign(<%- JSON.stringify(theme.customSwiperTopArticle) %>);
}
// -------- end 自定义首页文章轮播

💢 修改 themes/stellar/layout/index.ejs

点击展开代码
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
function layout_post_pin_article(type,post,content){
var el='';
if(post.post===undefined){
post.post='article';
}
//文章简述
var articleDescription='';
if(post.excerpt){
articleDescription=strip_html(post.excerpt)
}else if(post.description){
articleDescription=post.description
}else if(post.content&&theme.article.auto_excerpt>0){
articleDescription=truncate(strip_html(post.content),{length:theme.article.auto_excerpt})
}

el +='<div class="blog-slider__item swiper-slide">';
el +='<a class="blog-slider__img" href="' + url_for(post.link || post.path) + '">';
el +='<img width="48" height="48" no-lazy src="' + post.swiper_thumbnail + '" alt=""/>';
el +='</a>';
el +='<div class="blog-slider__content">';
el +='<span class="blog-slider__code">'+ date(post.date,config.date_format) +'</span>';
el +='<a class="blog-slider__title" href="' + url_for(post.link || post.path) + '" title="'+ (post.title || post.seo_title) +'">'+(post.title || post.seo_title) +'</a>';
el +='<div class="blog-slider__text">'+articleDescription +'</div>';
el +='<a class="blog-slider__button" href="' + url_for(post.link || post.path) + '">详情</a>';
el +='</div>';
el +='</div>';
return el;
}

function layout_posts(partial) {
var el = '';
el += '<div class="post-list post">';
if (is_home()) {
// pinned posts
const pinned = site.posts.filter(function(post){
return post.pin !== undefined;
}).sort((config.index_generator && config.index_generator.order_by) || '-date');

if (page.current === 1) {
el += '<div id="_custom-post-categories"></div>';
if(theme.customSwiperTopArticle.enable){
el+='<div class="blog-slider swiper-container-fade swiper-container-horizontal" id="swiper_container">';
el+='<div class="blog-slider__wrp swiper-wrapper">';
pinned.forEach((post,i)=>{
el+=layout_post_pin_article('post',post,partial(post));
});
el+='</div>';
el+='<div class="blog-slider__pagination swiper-pagination-clickable swiper-pagination-bullets"></div>';
el+='</div>';
}else{
pinned.forEach((post,i)=>{
el += layout_post_card('post',post,partial(post));
});
}
}
// unpinned posts
page.posts.each(function(post){
if (theme.customSwiperTopArticle.enable) {
el += layout_post_card('post', post, partial(post));
}else{
if(post.pin == undefined){
el += layout_post_card('post',post,partial(post));
}
}
})
} else {
page.posts.each(function(post){
el += layout_post_card('post', post, partial(post));
})
}
el += '</div>';
return el;
}

💢 修改 themes/stellar/source/js/main.js

修改插件 swipper部分 if (stellar.plugins.swiper)

点击展开代码
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// ------------------- start 首页置顶文章轮播  新增
if (stellar.plugins.swiper) {
const swiper_container = document.getElementById('swiper_container');
if (swiper_container !== undefined) {
stellar.loadCSS(stellar.plugins.customSwiperTopArticle.css);
stellar.loadScript(stellar.plugins.customSwiperTopArticle.js, {defer:true}).then(function () {
var swiper = new Swiper('.blog-slider', {
passiveListeners: true,
spaceBetween: 30,
effect: 'fade',
loop: true,
autoplay: {
disableOnInteraction: true,
delay: 3000
},
mousewheel: false,
// autoHeight: true,
pagination: {
el: '.blog-slider__pagination',
clickable: true,
}
});
swiper_container.onmouseenter = function() {
swiper.autoplay.stop();
};
swiper_container.onmouseleave = function() {
swiper.autoplay.start();
}
});
}
// ------------------- end 首页置顶文章轮播 新增

// swiper
const swiper_api = document.getElementById('swiper-api');
if (swiper_api != undefined) {
stellar.loadCSS(stellar.plugins.swiper.css);
stellar.loadScript(stellar.plugins.swiper.js, {defer:true}).then(function () {
var swiper = new Swiper('.swiper-container', {
slidesPerView: 'auto',
spaceBetween: 8,
centeredSlides: true,
loop: true,
pagination: {
el: '.swiper-pagination',
clickable: true,
},
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
});
})
}
}

💢 在主题配置文件中添加如下配置

1
2
3
4
5
6
# 自定义swiper文章置顶
customSwiperTopArticle:
enable: true
css: https://cdn.jsdelivr.net/gh/XuxuGood/simple-blog-cdn@main/css/swiper/swiper.min.css
js: https://cdn.jsdelivr.net/gh/XuxuGood/simple-blog-cdn@main/js/swiper/swiper.min.js
init_js: https://cdn.jsdelivr.net/gh/XuxuGood/simple-blog-cdn@main/js/swiper/swiper_init.js

💢 正式使用

在文章中添加如下内容即可在轮播中展示

1
2
pin: true
swiper_thumbnail: https://cdn.jsdelivr.net/gh/gaoyanliang/cdn@main/blog/img/post/hello1.jpg

原文参考(图片)

]]>
+ 具体改动可以查看 MR

💢 添加自定义css

themes/stellar/source/css/_custom/ 目录中添加 swiperstyle.styl 文件

swiperstyle.styl 内代码,点击展开
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
div#swiper_container
background var(--card);
z-index auto
.blog-slider
position relative
border-radius 18px 18px 18px 18px
margin auto
padding: 10px
transition all .3s

.blog-slider__item
display flex
align-items center
&.swiper-slide-active
.blog-slider__img
img
opacity 1
transition-delay .3s
.blog-slider__content
& > *
opacity 1
transform none
& > *:nth-child(1)
transition-delay 0.3s
& > *:nth-child(2)
transition-delay 0.4s
& > *:nth-child(3)
transition-delay 0.5s
& > *:nth-child(4)
transition-delay 0.6s
& > *:nth-child(5)
transition-delay 0.7s
& > *:nth-child(6)
transition-delay 0.8s
& > *:nth-child(7)
transition-delay 0.9s
& > *:nth-child(8)
transition-delay 1s
& > *:nth-child(9)
transition-delay 1.1s
& > *:nth-child(10)
transition-delay 1.2s
& > *:nth-child(11)
transition-delay 1.3s
& > *:nth-child(12)
transition-delay 1.4s
& > *:nth-child(13)
transition-delay 1.5s
& > *:nth-child(14)
transition-delay 1.6s
& > *:nth-child(15)
transition-delay 1.7s



.blog-slider__img
width 300px
flex-shrink 0
height 200px
padding 10px
border-radius 20px
transform translateX(0px)
overflow hidden
&:after
content ''
position absolute
top 0
left 0
width 100%
height 80%
border-radius 15px
opacity 0.8
img
width 100%
height 80%
object-fit cover
display block
opacity 0
border-radius 5px
transition all .3s

.blog-slider__content
padding-right 50px
padding-left 25px
& > *
opacity 0
transform translateY(25px)
transition all .4s


.blog-slider__code
text-align left
color var(--text-p3)
margin-bottom 10px
display block
font-weight 500

.blog-slider__title
text-align left
font-size $fs-h3
font-weight 700
color var(--text-p1)
margin-bottom 15px
-webkit-line-clamp 1
display -webkit-box
overflow hidden
-webkit-box-orient vertical

.blog-slider__text
text-align left
font-size $fs-h5
color var(--text-p3)
-webkit-line-clamp 3
display -webkit-box
overflow hidden
-webkit-box-orient vertical
margin-bottom 15px
line-height 1.5em
width 100%
word-break break-all
word-wrap break-word

.blog-slider__button
display inline-flex
background-color var(--block)
padding 14px 14px
border-radius 15px
color var(--text-p1)
text-decoration none
font-weight 500
justify-content center
text-align center
letter-spacing 1px
display none
&:hover
background-color var(--block-hover)


.blog-slider .swiper-container-horizontal > .swiper-pagination-bullets, .blog-slider .swiper-pagination-custom, .blog-slider .swiper-pagination-fraction
bottom 10px
left 0
width 100%

.blog-slider__pagination
position absolute
z-index 1
right 20px
width 11px !important
text-align center
left auto !important
top 50%
bottom auto !important
transform translateY(-50%)
&.swiper-pagination-bullets
.swiper-pagination-bullet
margin 8px 0 !important
.swiper-pagination-bullet
width 11px
height 11px
display block
border-radius 10px
background #858585
opacity 0.2
transition all .3s
.swiper-pagination-bullet-active
opacity 1
background $color-theme
height 30px

@media screen and (max-width: 600px)
.blog-slider__pagination
transform translateX(-50%)
left 50% !important
top 320px
width 100% !important
display flex
justify-content center
align-items center

.blog-slider__pagination
&.swiper-pagination-bullets
.swiper-pagination-bullet
margin 0 5px !important

.blog-slider__pagination
.swiper-pagination-bullet-active
height 11px
width 30px

.blog-slider__button
display inline-flex
width 70%
.blog-slider__text
margin-bottom 40px

.blog-slider
min-height 350px
height auto
margin-bottom 10px

.blog-slider__content
margin-top 20px
text-align center
padding 0 30px

.blog-slider__item
flex-direction column

.blog-slider__img
.blog-slider__content
padding-left 10px
padding-right 10px

.blog-slider__pagination.swiper-pagination-clickable.swiper-pagination-bullets
top 230px
本站swiperstyle.styl代码,点击展开
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
div#swiper_container
background var(--card);
z-index auto
.blog-slider
position relative
border-radius 18px 18px 18px 18px
margin auto
padding: 10px
transition all .3s

.blog-slider__item
display flex
align-items center
&.swiper-slide-active
.blog-slider__img
img
opacity 1
transition-delay .3s
.blog-slider__content
& > *
opacity 1
transform none
& > *:nth-child(1)
transition-delay 0.3s
& > *:nth-child(2)
transition-delay 0.4s
& > *:nth-child(3)
transition-delay 0.5s
& > *:nth-child(4)
transition-delay 0.6s
& > *:nth-child(5)
transition-delay 0.7s
& > *:nth-child(6)
transition-delay 0.8s
& > *:nth-child(7)
transition-delay 0.9s
& > *:nth-child(8)
transition-delay 1s
& > *:nth-child(9)
transition-delay 1.1s
& > *:nth-child(10)
transition-delay 1.2s
& > *:nth-child(11)
transition-delay 1.3s
& > *:nth-child(12)
transition-delay 1.4s
& > *:nth-child(13)
transition-delay 1.5s
& > *:nth-child(14)
transition-delay 1.6s
& > *:nth-child(15)
transition-delay 1.7s



.blog-slider__img
width 300px
flex-shrink 0
height 200px
padding 10px
border-radius 20px
transform translateX(0px)
overflow hidden
&:after
content ''
position absolute
top 0
left 0
width 100%
height 80%
border-radius 15px
opacity 0.8
img
width 100%
height 80%
object-fit cover
display block
opacity 0
border-radius 5px
transition all .3s

.blog-slider__content
padding-right 50px
padding-left 25px
& > *
opacity 0
transform translateY(25px)
transition all .4s


.blog-slider__code
text-align left
font-size $fs-h5
color var(--text-p4)
margin-bottom 10px
display block
font-weight 500

.blog-slider__title
text-align left
font-size $fs-h3
font-weight 700
color var(--text-p1)
margin-bottom 15px
-webkit-line-clamp 1
display -webkit-box
overflow hidden
-webkit-box-orient vertical

.blog-slider__text
text-align left
font-size $fs-h5
color var(--text-p3)
-webkit-line-clamp 3
display -webkit-box
overflow hidden
-webkit-box-orient vertical
margin-bottom 15px
line-height 1.5em
width 100%
word-break break-all
word-wrap break-word

.blog-slider__button
display inline-flex
background-color var(--block)
padding 10px 10px
border-radius 15px
color var(--text-p1)
text-decoration none
font-weight 500
justify-content center
text-align center
letter-spacing 1px
display none
&:hover
background-color #00FFFF


.blog-slider .swiper-container-horizontal > .swiper-pagination-bullets, .blog-slider .swiper-pagination-custom, .blog-slider .swiper-pagination-fraction
bottom 10px
left 0
width 100%

.blog-slider__pagination
position absolute
z-index 1
right 20px
width 11px !important
text-align center
left auto !important
top 50%
bottom auto !important
transform translateY(-50%)
&.swiper-pagination-bullets
.swiper-pagination-bullet
margin 8px 0 !important
.swiper-pagination-bullet
width 11px
height 11px
display block
border-radius 10px
background #00FF00
opacity 0.2
transition all .3s
.swiper-pagination-bullet-active
opacity 1
background #FFA500
height 30px

@media screen and (max-width: 600px)
.blog-slider__pagination
transform translateX(-50%)
left 50% !important
top 320px
width 100% !important
display flex
justify-content center
align-items center

.blog-slider__pagination
&.swiper-pagination-bullets
.swiper-pagination-bullet
margin 0 5px !important

.blog-slider__pagination
.swiper-pagination-bullet-active
height 11px
width 30px

.blog-slider__button
display inline-flex
width 70%
background #87CEFA
.blog-slider__text
margin-bottom 10px

.blog-slider
min-height 350px
height auto
margin-bottom 10px

.blog-slider__content
margin-top 20px
text-align center
padding 0 30px

.blog-slider__item
flex-direction column

.blog-slider__img
.blog-slider__content
padding-left 10px
padding-right 10px

.blog-slider__pagination.swiper-pagination-clickable.swiper-pagination-bullets
top 230px

添加自定义文件之后需要在 themes/stellar/source/css/main.styl 中引用

1
2
// 自定义样式
@import '_custom/*'

💢 修改 themes/stellar/layout/_partial/scripts/index.ejs

添加如下代码:

1
2
3
4
5
// -------- start 自定义首页文章轮播
if ('<%- theme.customSwiperTopArticle.enable %>' == 'true') {
stellar.plugins.customSwiperTopArticle = Object.assign(<%- JSON.stringify(theme.customSwiperTopArticle) %>);
}
// -------- end 自定义首页文章轮播

💢 修改 themes/stellar/layout/index.ejs

点击展开代码
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
function layout_post_pin_article(type,post,content){
var el='';
if(post.post===undefined){
post.post='article';
}
//文章简述
var articleDescription='';
if(post.excerpt){
articleDescription=strip_html(post.excerpt)
}else if(post.description){
articleDescription=post.description
}else if(post.content&&theme.article.auto_excerpt>0){
articleDescription=truncate(strip_html(post.content),{length:theme.article.auto_excerpt})
}

el +='<div class="blog-slider__item swiper-slide">';
el +='<a class="blog-slider__img" href="' + url_for(post.link || post.path) + '">';
el +='<img width="48" height="48" no-lazy src="' + post.swiper_thumbnail + '" alt=""/>';
el +='</a>';
el +='<div class="blog-slider__content">';
el +='<span class="blog-slider__code">'+ date(post.date,config.date_format) +'</span>';
el +='<a class="blog-slider__title" href="' + url_for(post.link || post.path) + '" title="'+ (post.title || post.seo_title) +'">'+(post.title || post.seo_title) +'</a>';
el +='<div class="blog-slider__text">'+articleDescription +'</div>';
el +='<a class="blog-slider__button" href="' + url_for(post.link || post.path) + '">详情</a>';
el +='</div>';
el +='</div>';
return el;
}

function layout_posts(partial) {
var el = '';
el += '<div class="post-list post">';
if (is_home()) {
// pinned posts
const pinned = site.posts.filter(function(post){
return post.pin !== undefined;
}).sort((config.index_generator && config.index_generator.order_by) || '-date');

if (page.current === 1) {
el += '<div id="_custom-post-categories"></div>';
if(theme.customSwiperTopArticle.enable){
el+='<div class="blog-slider swiper-container-fade swiper-container-horizontal" id="swiper_container">';
el+='<div class="blog-slider__wrp swiper-wrapper">';
pinned.forEach((post,i)=>{
el+=layout_post_pin_article('post',post,partial(post));
});
el+='</div>';
el+='<div class="blog-slider__pagination swiper-pagination-clickable swiper-pagination-bullets"></div>';
el+='</div>';
}else{
pinned.forEach((post,i)=>{
el += layout_post_card('post',post,partial(post));
});
}
}
// unpinned posts
page.posts.each(function(post){
if (theme.customSwiperTopArticle.enable) {
el += layout_post_card('post', post, partial(post));
}else{
if(post.pin == undefined){
el += layout_post_card('post',post,partial(post));
}
}
})
} else {
page.posts.each(function(post){
el += layout_post_card('post', post, partial(post));
})
}
el += '</div>';
return el;
}

💢 修改 themes/stellar/source/js/main.js

修改插件 swipper部分 if (stellar.plugins.swiper)

点击展开代码
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// ------------------- start 首页置顶文章轮播  新增
if (stellar.plugins.swiper) {
const swiper_container = document.getElementById('swiper_container');
if (swiper_container !== undefined) {
stellar.loadCSS(stellar.plugins.customSwiperTopArticle.css);
stellar.loadScript(stellar.plugins.customSwiperTopArticle.js, {defer:true}).then(function () {
var swiper = new Swiper('.blog-slider', {
passiveListeners: true,
spaceBetween: 30,
effect: 'fade',
loop: true,
autoplay: {
disableOnInteraction: true,
delay: 3000
},
mousewheel: false,
// autoHeight: true,
pagination: {
el: '.blog-slider__pagination',
clickable: true,
}
});
swiper_container.onmouseenter = function() {
swiper.autoplay.stop();
};
swiper_container.onmouseleave = function() {
swiper.autoplay.start();
}
});
}
// ------------------- end 首页置顶文章轮播 新增

// swiper
const swiper_api = document.getElementById('swiper-api');
if (swiper_api != undefined) {
stellar.loadCSS(stellar.plugins.swiper.css);
stellar.loadScript(stellar.plugins.swiper.js, {defer:true}).then(function () {
var swiper = new Swiper('.swiper-container', {
slidesPerView: 'auto',
spaceBetween: 8,
centeredSlides: true,
loop: true,
pagination: {
el: '.swiper-pagination',
clickable: true,
},
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
});
})
}
}

💢 在主题配置文件中添加如下配置

1
2
3
4
5
6
# 自定义swiper文章置顶
customSwiperTopArticle:
enable: true
css: https://cdn.jsdelivr.net/gh/XuxuGood/simple-blog-cdn@main/css/swiper/swiper.min.css
js: https://cdn.jsdelivr.net/gh/XuxuGood/simple-blog-cdn@main/js/swiper/swiper.min.js
init_js: https://cdn.jsdelivr.net/gh/XuxuGood/simple-blog-cdn@main/js/swiper/swiper_init.js

💢 正式使用

在文章中添加如下内容即可在轮播中展示

1
2
pin: true
swiper_thumbnail: https://cdn.jsdelivr.net/gh/gaoyanliang/cdn@main/blog/img/post/hello1.jpg

原文参考(图片)

]]>
stellar diff --git a/friends/index.html b/friends/index.html index e074788f..f592c427 100644 --- a/friends/index.html +++ b/friends/index.html @@ -34,9 +34,7 @@ - - @@ -44,74 +42,44 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -179,7 +147,7 @@

本站开起了全站external nofollow noopener noreferrer,但由于我能力有限,无法针对友链页面关闭 nofollow 欢迎各位站长(不介意这个的)前来交换友链

想添加酷小呵为友链?请先把酷小呵添加到贵站,然后点击点击申请友链 即可,谢谢!

- +