hexo-theme-solitude 2.1.5 → 2.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/_config.yml +18 -19
  2. package/languages/default.yml +173 -173
  3. package/layout/archive.pug +3 -1
  4. package/layout/category.pug +3 -1
  5. package/layout/includes/head/page_config.pug +3 -1
  6. package/layout/includes/loading.pug +1 -1
  7. package/layout/includes/rightmenu.pug +6 -5
  8. package/layout/includes/widgets/aside/aside.pug +1 -1
  9. package/layout/includes/widgets/page/links/banner.pug +15 -12
  10. package/layout/includes/widgets/rightside/show.pug +1 -1
  11. package/layout/includes/widgets/third-party/hot/artalk.pug +56 -0
  12. package/layout/includes/widgets/third-party/hot/twikoo.pug +57 -0
  13. package/layout/includes/widgets/third-party/pjax.pug +2 -1
  14. package/layout/index.pug +1 -1
  15. package/layout/tag.pug +2 -0
  16. package/package.json +1 -1
  17. package/scripts/event/cdn.js +1 -1
  18. package/scripts/event/init.js +0 -1
  19. package/scripts/event/merge_config.js +14 -39
  20. package/scripts/filter/default.js +20 -21
  21. package/scripts/filter/lazyload.js +2 -4
  22. package/scripts/helper/getArchiveLength.js +9 -11
  23. package/scripts/helper/related_post.js +56 -56
  24. package/scripts/tags/article.js +1 -1
  25. package/scripts/tags/tabs.js +28 -46
  26. package/source/css/_comments/twikoo.styl +3 -3
  27. package/source/css/_highlight/highlight/diff.styl +13 -1
  28. package/source/css/_highlight/index.styl +9 -0
  29. package/source/css/_highlight/prismjs/diff.styl +13 -1
  30. package/source/css/_layout/article-container.styl +1 -1
  31. package/source/css/_layout/recent-post.styl +2 -2
  32. package/source/img/error_load.avif +0 -0
  33. package/source/js/covercolor/api.js +29 -14
  34. package/source/js/covercolor/ave.js +38 -24
  35. package/source/js/covercolor/local.js +52 -52
  36. package/source/js/main.js +238 -240
  37. package/source/js/music.js +21 -39
  38. package/source/js/right_menu.js +67 -132
  39. package/source/js/third_party/barrage.min.js +93 -1
  40. package/source/js/third_party/envelope.min.js +1 -1
  41. package/source/js/third_party/post_ai.min.js +184 -1
  42. package/source/js/tw_cn.js +19 -18
  43. package/source/js/utils.js +50 -57
  44. package/layout/includes/widgets/home/hot/artalk.pug +0 -45
  45. package/layout/includes/widgets/home/hot/twikoo.pug +0 -46
  46. package/source/img/loading.avif +0 -0
  47. /package/layout/includes/widgets/{home → third-party}/hot/index.pug +0 -0
package/_config.yml CHANGED
@@ -547,34 +547,31 @@ rightside:
547
547
  # Footer
548
548
  # 页脚
549
549
  footer:
550
- # Information social icon
550
+ # 信息社交图标
551
551
  information:
552
552
  author: false # img url / false
553
553
  left:
554
- # Github: https://github.com/everfu || fab fa-github # Name: link || icon
554
+ # Github: https://github.com/everfu || fab fa-github # 名称: 链接 || 图标
555
555
  # Mail: mailto:o@everfu.cn || fab fa-envelope
556
556
  right:
557
557
  # Bilibili: https://space.bilibili.com/1329819902 || fab fa-bilibili
558
558
  # Douyin: https://v.douyin.com/iJsLc8jt/ || fab fa-tiktok
559
559
  group:
560
- # Navigation:
560
+ # 导航:
561
561
  # Archives: /archives/
562
562
  # Categories: /categories/
563
563
  # Tags: /tags/
564
- # Arrangement:
564
+ # 排列:
565
565
  # Cookies: /cookies/
566
566
  # Privacy: /privacy/
567
567
  # Copyright: /copyright/
568
568
 
569
- # Random link
570
569
  # 随机友链
571
- randomlink: false # Random link
572
- # License
573
- license: # https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh # License
570
+ randomlink: false # 随机友链
571
+ # 许可证
572
+ license: # https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh # 许可证
574
573
 
575
- # Footer information text
576
574
  # 页脚信息文字
577
- # Please do not delete the theme information, this is respect for the author
578
575
  # 请不要删除主题信息,这是对作者的尊重
579
576
  links:
580
577
  - name: Theme
@@ -623,16 +620,16 @@ capsule:
623
620
  keyboard:
624
621
  enable: false
625
622
  list:
626
- # - name: Close Keyboard
623
+ # - name: 关闭快捷菜单
627
624
  # key: K
628
625
  # func: keyboard
629
- # - name: Open Console
626
+ # - name: 打开控制台
630
627
  # key: A
631
628
  # sco: showConsole
632
- # - name: Play/Pause Music
629
+ # - name: 播放/暂停音乐
633
630
  # key: M
634
631
  # sco: musicToggle
635
- # - name: Open Links
632
+ # - name: 打开友链
636
633
  # key: L
637
634
  # url: /links/
638
635
  # --------------------------- end ---------------------------
@@ -645,7 +642,7 @@ lazyload:
645
642
  # post, site
646
643
  field: site
647
644
  # 加载时替换图
648
- placeholder: /img/loading.avif
645
+ placeholder: ''
649
646
  # 加载失败替换图
650
647
  errorimg: /img/error_load.avif
651
648
  # --------------------------- end ---------------------------
@@ -657,6 +654,9 @@ loading:
657
654
  # Full screen loading
658
655
  # 全屏加载
659
656
  fullpage: false
657
+ # Loading icon, default is siteicon
658
+ # 加载图标,不写默认siteicon
659
+ favicon: /img/favicon.png
660
660
  # Pace loading
661
661
  # Pace 加载
662
662
  pace: true
@@ -980,14 +980,13 @@ google_adsense:
980
980
  # --------------------------- end ---------------------------
981
981
 
982
982
  # --------------------------- start ---------------------------
983
- # Do not modify unless necessary
984
983
  # 非必要请勿修改
985
984
  CDN:
986
985
  internal: local # local / cdnjs / jsdelivr / unpkg / custom
987
986
  third_party: cdnjs # cdnjs / jsdelivr / unpkg / custom
988
- version: true # Whether to use the version number
989
- custom_format: //open.lightxi.com/cdnjs/ajax/libs/${cdnjs_name}/${version}/${min_cdnjs_file} # Custom format
990
- # Directly override the default CDN link (highest priority)
987
+ version: true # 是否使用版本号
988
+ custom_format: //open.lightxi.com/cdnjs/ajax/libs/${cdnjs_name}/${version}/${min_cdnjs_file} # 自定义格式
989
+ # 直接覆盖默认 CDN 链接(优先级最高)
991
990
  options:
992
991
  # algolia_search:
993
992
  # instantsearch:
@@ -1,248 +1,248 @@
1
- more: More
2
- star: Behold, those who found delight in this piece also perused
3
- random: Random
4
- upload: 'datetime: '
5
- totalk: You don't need to delete blank lines, just type in your comments.
6
- loading: Loading...
7
- day: ' days'
8
- hot-tip: Hot
9
-
1
+ more: 更多
2
+ star: 喜欢这篇的人也看了
3
+ random: 随便逛逛
4
+ upload: 发布时间:
5
+ totalk: 无需删除空行,直接输入评论即可
6
+ loading: 加载中...
7
+ day: ' '
8
+ hot-tip: 多人互动
9
+
10
+ # Language: 简体中文
10
11
  theme:
11
- dark: Dark
12
- light: Light
12
+ dark: 已切换至深色模式
13
+ light: 已切换至浅色模式
13
14
 
14
15
  copy:
15
- success: Copied
16
- error: Copy failed
16
+ success: 复制成功
17
+ error: 复制失败
17
18
 
18
19
  copy_copyright:
19
- author: Author
20
- link: Link
21
- source: Source
22
- info: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
20
+ author: 作者
21
+ link: 链接
22
+ source: 来源
23
+ info: 著作权归作者所有。 商业转载请联系作者获得授权,非商业转载请注明出处。
23
24
 
24
25
  time:
25
- day: " days ago"
26
- hour: " hours ago"
27
- just: "just"
28
- min: " minutes ago"
29
- month: " months ago"
26
+ day: "天前"
27
+ hour: "小时前"
28
+ just: "刚刚"
29
+ min: "分钟前"
30
+ month: "个月前"
30
31
 
31
32
  page:
32
- tag: Tags
33
- category: Categories
34
- tags: All tags
35
- categories: All categories
36
- archives: Archives
37
- 404: Page not found
33
+ tag: 标签
34
+ category: 分类
35
+ tags: 全部标签
36
+ categories: 全部分类
37
+ archives: 文章
38
+ 404: 页面没有找到
39
+
40
+ nav:
41
+ site_name_title: 返回博客主页
42
+ backtop: 返回顶部
43
+ travellings: 开往-友链接力
44
+ search: 搜索
45
+ randompost: 随机一篇文章
46
+ console: 中控台
38
47
 
39
48
  home:
40
- home: Recommend
41
- sticky: Sticky
42
- new: New
43
- read: Unread
44
- recommend: Recommend
45
- recommendmore: More
46
- archives: All articles
49
+ home: 推荐
50
+ sticky: 置顶
51
+ new: 最新
52
+ read: 未读
53
+ recommend:
54
+ recommendmore: 更多推荐
55
+ archives: 全部文章
47
56
 
48
57
  post:
49
- reprint: Reprint
50
- original: Original
51
- cc: This article is a ${cc} article, pay attention to the copyright.
52
- posted: Posted on
53
- updated: Last updated on
54
- wordcount: Word count
55
- minread: Reading time
56
- ip: The author's IP belongs to
57
- pv: PV
58
- comment: Comments
58
+ reprint: 转载或翻译
59
+ original: 原创
60
+ cc: 该文章为${cc}文章,注意版权协议
61
+ posted: 发布于
62
+ updated: 最后更新于
63
+ wordcount: 文章字数
64
+ minread: 阅读耗时
65
+ ip: 作者IP归属地为
66
+ pv: 文章热度
67
+ comment: 评论数
59
68
  copyright:
60
- reprint: This article is a reproduction or translation, and the copyright belongs to the original author. Please contact the original author for permission to republish this article.
61
- original: This piece of writing is an original article, utilizing the
62
- original_end: Agreement. For complete reproduction, please acknowledge the source as Courtesy of
69
+ reprint: 本文是转载或翻译文章,版权归原作者所有。转载本文请联系原作者。
70
+ original: 本文是原创文章,采用
71
+ original_end: 协议,完整转载请注明来自
63
72
  share:
64
- qq: Share to QQ
65
- weibo: Share to Weibo
66
- telegram: Share to Telegram
67
- twitter: Share to Twitter
68
- linkedin: Share to LinkedIn
69
- facebook: Share to Facebook
70
- link: Share to Link
71
- qrcode: Share to QR code
72
- whatsapp: Share to WhatsApp
73
+ qq: 分享到QQ
74
+ weibo: 分享到微博
75
+ telegram: 分享到Telegram
76
+ twitter: 分享到Twitter
77
+ linkedin: 分享到LinkedIn
78
+ facebook: 分享到Facebook
79
+ link: 复制文章链接
80
+ qrcode: 使用手机扫码阅读这篇文章
81
+ whatsapp: 分享到WhatsApp
73
82
  ai:
74
- title: Article Summary
75
- tip: Complaints
83
+ title: 文章摘要
84
+ tip: 投诉
76
85
  nav:
77
- next: Next
78
- prev: Previous
79
-
80
-
81
- nav:
82
- site_name_title: Back to home
83
- backtop: Back to top
84
- travellings: Traveling - Friends Link
85
- search: Search
86
- randompost: Random post
87
- console: Console
86
+ next: 下一篇
87
+ prev: 上一篇
88
88
 
89
89
  award:
90
- thanks: Thanks
91
- tipping: Sponsor
92
- title: List of appreciation
90
+ thanks: 致谢
91
+ tipping: 赞赏作者
92
+ title: 赞赏名单
93
93
 
94
94
  search:
95
- empty: No results found
96
- hit: Found ${query} results for you
97
- placeholder: Enter keywords to search
98
- count: Total <b>${count}</b> results.
99
- load: Loading...
95
+ empty: 找不到你查询的内容:${query}
96
+ hit: 找到 ${hits} 条结果,用时 ${time} 毫秒
97
+ placeholder: 输入关键词快速查找
98
+ count: <b>${count}</b> 条结果。
99
+ load: 搜索中...
100
100
 
101
101
  head:
102
- noscript: Please enable JavaScript to view the site
102
+ noscript: 开启JavaScript才能访问本站哦~
103
103
 
104
104
  aside:
105
- postcount: 'Posts:'
106
- pv: 'PV:'
107
- uv: 'UV:'
108
- runtime: 'Runtime:'
109
- updatetime: 'Last update:'
110
- wordcount: 'Word count:'
111
- toc: Table of contents
112
- tagmore: View all
113
- avatar: Avatar
114
- hello: 'Long time no see, '
115
- back: Welcome back again,
116
- sticker: Mood sticker
117
- newpost: New posts
118
- newcomment: New comments
105
+ postcount: '文章总数 :'
106
+ pv: '总访问数 :'
107
+ uv: '总访客数 :'
108
+ runtime: '建站天数 :'
109
+ updatetime: '最后更新 :'
110
+ wordcount: '全站字数 :'
111
+ toc: 文章目录
112
+ tagmore: 查看全部
113
+ avatar: 头像
114
+ hello: 好久不见,
115
+ back: 欢迎再次回来,
116
+ sticker: 心情贴纸
117
+ newpost: 最近发布
118
+ newcomment: 最近评论
119
119
  card:
120
- posts: 'Posts:'
121
- tags: 'Tags:'
122
- categories: 'Categories:'
120
+ posts: '累计文章数:'
121
+ tags: '标签总数:'
122
+ categories: '分类总数:'
123
123
 
124
124
  console:
125
- comment_tip: Interaction
126
- comment_title: Latest comments
127
- tag_tip: Tags
128
- tag_title: Find interesting areas
129
- switch_darkmode: Day and night mode
130
- switch_hideAside: Sidebar display control
131
- switch_keyboard: Keyboard operation
132
- switch_music: Music switch
133
- archive_unit: Posts
134
- recent_comment_more: Recent comments
125
+ comment_tip: 互动
126
+ comment_title: 最新评论
127
+ tag_tip: 标签
128
+ tag_title: 寻找感兴趣的领域
129
+ switch_darkmode: 昼夜切换
130
+ switch_hideAside: 边栏显示控制
131
+ switch_keyboard: 键盘快捷键
132
+ switch_music: 音乐开关
133
+ archive_unit:
134
+ recent_comment_more: 最近评论
135
135
  newest_comment:
136
- image: Image
137
- link: Link
138
- code: Code
139
- emoji: Emoji
136
+ image: 图片
137
+ link: 链接
138
+ code: 代码
139
+ emoji: 表情
140
140
 
141
141
  sidebar:
142
- function: Function
143
- darkmode: Display mode
144
- siteinfo: Site information
142
+ function: 功能
143
+ darkmode: 显示模式
144
+ siteinfo: 网站信息
145
145
 
146
146
  footer:
147
- description: Article from ${title}
148
- learnmore: Learn more
149
- randomlink: Links
150
- rss: Subscribe
151
- theme: Theme
147
+ description: 来自${title}的文章
148
+ learnmore: 了解更多
149
+ randomlink: 友链
150
+ rss: 订阅
151
+ theme: 主题
152
152
 
153
153
  cookies:
154
- title: Agreement reminder assistant
155
- tip: Check out the efforts we make to protect your privacy
156
- privacy: How this site protects your privacy
154
+ title: 协议提醒助手
155
+ tip: 查看本站为你的个人隐私做出的努力
156
+ privacy: 本站如何保护你的隐私
157
157
 
158
158
  music:
159
- hit: Paused
159
+ hit: 音乐已暂停
160
160
 
161
161
  404:
162
- button: Back to home
162
+ button: 返回首页
163
163
 
164
164
  link:
165
165
  banner:
166
- toComment: Application link
167
- random: Random Visit
168
- random: 'Click the button to visit a random link. The safety and availability of the destination website are not guaranteed. The random link for this visit is: ⌈ ${name} ⌋ '
169
- to: To
166
+ toComment: 申请友链
167
+ random: 随机访问
168
+ random: 点击前往按钮进入随机一个友链,不保证跳转网站的安全性和可用性。本次随机到的是本站友链:⌈ ${name} ⌋
169
+ to: 前往
170
170
 
171
171
  keyboard:
172
- title: Blog shortcuts
172
+ title: 博客快捷键
173
173
 
174
174
  newest_comment:
175
- error: Unable to get comments, please check the configuration.
176
- zero: No comments.
175
+ error: 无法获取评论,请确认相关配置是否正确。
176
+ zero: 没有评论
177
177
 
178
178
  comment:
179
- title: ' Comment'
179
+ title: 评论
180
180
 
181
181
  commentBarrage:
182
- title: Hot
182
+ title: 热评
183
183
 
184
- f12: Developer mode is turned on, please follow the GPL.
184
+ f12: 开发者模式已打开,请遵循GPL协议。
185
185
 
186
186
  right_menu:
187
- copy: Copy
188
- paste: Paste
189
- comment: ToTalk
190
- new: Open
191
- link: Copy
192
- img: Copy
193
- downloadImg: Download
194
- search: Search
195
- dark: Light
196
- light: Dark
187
+ copy: 复制选中文本
188
+ paste: 粘贴文本
189
+ comment: 引用到评论
190
+ new: 新窗口打开
191
+ link: 复制链接地址
192
+ img: 复制此图片
193
+ downloadImg: 下载此图片
194
+ search: 站内搜索
195
+ dark: 浅色模式
196
+ light: 深色模式
197
197
  chs_to_cht: 轉為繁體
198
198
  cht_to_chs: 转为简体
199
- img_error: This image cannot be copied or downloaded.
200
- ctrl_original_menu: Hold Ctrl + right-click to open the browser's context menu
199
+ img_error: 此图片无法复制与下载
200
+ ctrl_original_menu: 按住Ctrl+右键可打开浏览器右键菜单
201
201
  barrage:
202
- open: Open Barrage
203
- close: Close Barrage
202
+ open: 显示热评
203
+ close: 关闭热评
204
204
  music:
205
- start: Play
206
- stop: Pause
207
- back: Back
208
- forward: Forward
209
- copyMusicName: Copy Name
205
+ start: 播放音乐
206
+ stop: 暂停音乐
207
+ back: 切换到上一首
208
+ forward: 切换到下一首
209
+ copyMusicName: 复制歌名
210
210
 
211
211
  pagination:
212
- prev: Prev
213
- next: Next
214
- to: Go to page
212
+ prev: 上一页
213
+ next: 下一页
214
+ to: 跳转到指定页面
215
215
 
216
216
  about:
217
217
  other:
218
218
  oneself:
219
- map_title: I live in
220
- info_title1: Born
221
- info_title2: Current occupation
219
+ map_title: 我现在住在
220
+ info_title1: 生于
221
+ info_title2: 现在职业
222
222
  tj:
223
- tip: Data
224
- title: Access statistics
223
+ tip: 数据
224
+ title: 访问统计
225
225
  personalities:
226
- tip1: At
227
- tip2: 'Learn more:'
226
+ tip1:
227
+ tip2: 了解更多关于
228
228
 
229
229
  message:
230
- close: Hide message
231
- open: Show message
230
+ close: 隐藏弹幕
231
+ open: 显示弹幕
232
232
 
233
233
  essay:
234
- tip0: '- All expanded -'
235
- tip1: '- Recent Exhibitions #{count} Short Articles -'
236
- link: 'Link'
234
+ tip0: '- 已展开所有短文 -'
235
+ tip1: '- 只展示最近 #{count} 条短文 -'
236
+ link: '链接'
237
237
 
238
238
  rightside:
239
239
  show:
240
- gear: Settings
241
- toc: Toc
242
- comment: Comment
243
- top: Top
240
+ gear: 扩展
241
+ toc: 目录
242
+ comment: 评论
243
+ top: 返回顶部
244
244
  barrage: 弹
245
245
  hide:
246
246
  translate: 简繁转换
247
- mode: Mode
248
- aside: Sidebar
247
+ mode: 显示模式切换
248
+ aside: 侧边栏
@@ -14,4 +14,6 @@ block content
14
14
  each post,index in page.posts.find({ parent: { $exists: false } }).data
15
15
  include includes/widgets/home/postList
16
16
  include includes/mixins/pagination
17
- include includes/widgets/aside/aside
17
+ if theme.comment.hot_tip.enable
18
+ include ./includes/widgets/third-party/hot/index.pug
19
+ include includes/widgets/aside/aside
@@ -9,4 +9,6 @@ block content
9
9
  each post,index in page.posts.find({ parent: { $exists: false } }).data
10
10
  include includes/widgets/home/postList
11
11
  include includes/mixins/pagination
12
- include includes/widgets/aside/aside
12
+ if theme.comment.hot_tip.enable
13
+ include ./includes/widgets/third-party/hot/index.pug
14
+ include includes/widgets/aside/aside
@@ -1,10 +1,12 @@
1
+ - var showToc = !!page.toc && (toc(page.content) !== '' || page.encrypt === true);
2
+
1
3
  script#config-diff.
2
4
  var PAGE_CONFIG = {
3
5
  is_post: !{is_post()},
4
6
  is_page: !{!is_post() && !is_home()},
5
7
  is_home: !{is_home()},
6
8
  page: '!{page.type}',
7
- toc: !{!!page.toc},
9
+ toc: !{showToc},
8
10
  comment: !{!!page.comment},
9
11
  ai_text: !{is_post && page.ai_text ? "'"+ page.ai_text+"'" : false},
10
12
  color: !{page.color ? "'"+ page.color+"'" : false},
@@ -1,6 +1,6 @@
1
1
  div(id="loading-box" onclick="preloader.endLoading();" style="zoom:1")
2
2
  div.loading-bg
3
- img.loading-img.nolazyload(src=url_for(theme.site.icon), alt="loading image")
3
+ img.loading-img.nolazyload(src=url_for(theme.loading.favicon || theme.site.icon), alt="loading image")
4
4
 
5
5
  script.
6
6
  const preloader = {
@@ -50,11 +50,12 @@ div#rightMenu
50
50
  div.rightMenu-item#menu-music-copyMusicName
51
51
  i.solitude.fa-solid.fa-clone
52
52
  span= _p('right_menu.music.copyMusicName')
53
- div.rightMenu-group.rightMenu-line.rightMenuOther
54
- each item,index in custom_list
55
- div.rightMenu-item(id=item.id class=item.class onclick=item.click+'||rm.hideRightMenu()')
56
- i.solitude(class=item.icon)
57
- span= item.name
53
+ if custom_list.length > 0
54
+ div.rightMenu-group.rightMenu-line.rightMenuOther
55
+ each item,index in custom_list
56
+ div.rightMenu-item(id=item.id class=item.class onclick=item.click+'||rm.hideRightMenu()')
57
+ i.solitude(class=item.icon)
58
+ span= item.name
58
59
  div.rightMenu-group.rightMenu-line.rightMenuOther
59
60
  if theme.right_menu.commentBarrage && theme.comment.use && theme.comment.commentBarrage
60
61
  div.rightMenu-item#menu-commentBarrage(onclick="sco.switchCommentBarrage()")
@@ -12,7 +12,7 @@
12
12
  each item in noSticky
13
13
  include ./asideSwitch.pug
14
14
  .sticky_layout
15
- if page.toc
15
+ if showToc
16
16
  include ./asideToc.pug
17
17
  each item in Sticky
18
18
  include ./asideSwitch.pug
@@ -16,16 +16,19 @@
16
16
  .tags-group-wrapper
17
17
  - const data = site.data.links.links
18
18
  - for (let i = 0; i < 2; i++)
19
+ - var links = []
19
20
  each x in data
20
- - var pairs = []
21
- each y, index in x.link_list
22
- if (index % 2 === 0)
23
- - pairs.push([y])
24
- else
25
- - pairs[pairs.length - 1].push(y)
26
- each pair in pairs
27
- .tags-group-icon-pair
28
- each y in pair
29
- a.tags-group-icon(href=url_for(y.link), title=y.name)
30
- img(src=y.avatar + (site.data.links.banner_suffix || ''), title=y.name)
31
- span.tags-group-title=y.name
21
+ each y in x.link_list
22
+ - links.push(y)
23
+ - var pairs = []
24
+ each link, index in links
25
+ if (index % 2 === 0)
26
+ - pairs.push([link])
27
+ else
28
+ - pairs[pairs.length - 1].push(link)
29
+ each pair in pairs
30
+ .tags-group-icon-pair
31
+ each y in pair
32
+ a.tags-group-icon(href=url_for(y.link), title=y.name)
33
+ img(src=y.avatar + (site.data.links.banner_suffix || ''), title=y.name)
34
+ span.tags-group-title=y.name
@@ -2,7 +2,7 @@
2
2
  if theme.rightside.hide.enable
3
3
  button.config(type='button' title=_p('rightside.show.gear') onclick='document.querySelector(".rs_hide").classList.toggle("show")')
4
4
  i.fas.fa-gear.fa-spin
5
- if page.toc
5
+ if showToc
6
6
  button.mobile.toc(type='button' title=_p('rightside.show.toc') onclick="document.querySelector('#card-toc').classList.toggle('open')")
7
7
  i.fas.fa-list
8
8
  if page.comment