hexo-theme-solitude 1.4.2 → 1.4.3

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 (41) hide show
  1. package/CONTRIBUTING.md +1 -1
  2. package/README.md +1 -1
  3. package/README_EN.md +1 -1
  4. package/_config.yml +13 -3
  5. package/languages/en-US.yml +31 -2
  6. package/languages/zh-CN.yml +32 -2
  7. package/languages/zh-TW.yml +147 -0
  8. package/layout/includes/footer.pug +1 -1
  9. package/layout/includes/head/config.pug +15 -2
  10. package/layout/includes/inject/body.pug +12 -4
  11. package/layout/includes/layout.pug +4 -0
  12. package/layout/includes/page/album.pug +4 -21
  13. package/layout/includes/page/music.pug +1 -4
  14. package/layout/includes/page/says.pug +1 -3
  15. package/layout/includes/widgets/home/bb/json.pug +2 -1
  16. package/layout/includes/widgets/home/bb/local.pug +2 -3
  17. package/layout/includes/widgets/home/bb/memos.pug +2 -1
  18. package/layout/includes/widgets/page/about/authorinfo.pug +1 -1
  19. package/layout/includes/widgets/page/about/hobbies.pug +2 -2
  20. package/layout/includes/widgets/page/about/motto.pug +17 -15
  21. package/layout/includes/widgets/page/about/skillsinfo.pug +38 -36
  22. package/layout/includes/widgets/page/about/tenyear.pug +1 -1
  23. package/layout/includes/widgets/page/says/json.pug +3 -3
  24. package/layout/includes/widgets/page/says/local.pug +1 -1
  25. package/layout/includes/widgets/rightside/index.pug +33 -22
  26. package/package.json +1 -1
  27. package/plugins.yml +6 -2
  28. package/scripts/event/cdn.js +5 -0
  29. package/scripts/event/init.js +18 -19
  30. package/scripts/event/page.js +0 -5
  31. package/scripts/filter/checkThemeConfig.js +23 -7
  32. package/scripts/helper/related_post.js +0 -6
  33. package/scripts/helper/stylus.js +8 -3
  34. package/source/css/_layout/index.styl +54 -34
  35. package/source/css/_page/about/index.styl +26 -16
  36. package/source/css/_page/gallery/index.styl +11 -8
  37. package/source/css/_widgets/_comment/twikoo.styl +1 -1
  38. package/source/js/rightside.js +159 -342
  39. package/source/js/tw_cn.js +76 -0
  40. package/layout/includes/page/not_configured.pug +0 -18
  41. package/scripts/helper/cdn.js +0 -12
package/CONTRIBUTING.md CHANGED
@@ -33,7 +33,7 @@ $ git push
33
33
  * 定期使用项目仓库内容更新自己仓库内容。
34
34
 
35
35
  ```bash
36
- $ git remote add upstream https://github.com/DuoSco/Hexo-theme-solitude
36
+ $ git remote add upstream https://github.com/wleelw/Hexo-theme-solitude
37
37
  $ git fetch upstream
38
38
  $ git checkout dev
39
39
  $ git rebase upstream/dev
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  ![master version](https://img.shields.io/github/package-json/v/wleelw/hexo-theme-solitude/master?color=%231ab1ad&label=master)
8
8
  ![master version](https://img.shields.io/github/package-json/v/wleelw/hexo-theme-solitude/dev?label=dev)
9
9
  ![https://img.shields.io/npm/v/hexo-theme-solitude?color=%09%23bf00ff](https://img.shields.io/npm/v/hexo-theme-solitude?color=%09%23bf00ff)
10
- ![hexo version](https://img.shields.io/badge/hexo-5.3.0+-0e83c)
10
+ ![hexo version](https://img.shields.io/badge/hexo-6.3.0+-0e83c)
11
11
  ![license](https://img.shields.io/github/license/wleelw/hexo-theme-solitude?color=FF5531)
12
12
 
13
13
  ![首页](https://github.com/wleelw/hexo-theme-solitude/assets/74389842/d008aba4-942d-4fdb-a611-d934c0bad9fe)
package/README_EN.md CHANGED
@@ -8,7 +8,7 @@
8
8
  ![master version](https://img.shields.io/github/package-json/v/wleelw/hexo-theme-solitude/master?color=%231ab1ad&label=master)
9
9
  ![master version](https://img.shields.io/github/package-json/v/wleelw/hexo-theme-solitude/dev?label=dev)
10
10
  ![https://img.shields.io/npm/v/hexo-theme-solitude?color=%09%23bf00ff](https://img.shields.io/npm/v/hexo-theme-solitude?color=%09%23bf00ff)
11
- ![hexo version](https://img.shields.io/badge/hexo-5.3.0+-0e83c)
11
+ ![hexo version](https://img.shields.io/badge/hexo-6.3.0+-0e83c)
12
12
  ![license](https://img.shields.io/github/license/wleelw/hexo-theme-solitude?color=FF5531)
13
13
 
14
14
  ![首页](https://github.com/wleelw/hexo-theme-solitude/assets/74389842/d008aba4-942d-4fdb-a611-d934c0bad9fe)
package/_config.yml CHANGED
@@ -62,7 +62,7 @@ nav:
62
62
  # icon: https://bu.dusays.com/2023/11/08/654af68b25bb8.jpg
63
63
  # # 点击的跳转链接
64
64
  # # Click the jump link
65
- # url: https://github.com/DuoSco/Hexo-Theme-solitude
65
+ # url: https://github.com/wleelw/Hexo-Theme-solitude
66
66
 
67
67
  # 导航栏内容
68
68
  # Navigation bar content
@@ -312,7 +312,7 @@ aside:
312
312
  # # 图标
313
313
  # icon: scoicon sco-github-line
314
314
  # # 跳转链接
315
- # url: https://github.com/DuoSco/Hexo-Theme-slitude
315
+ # url: https://github.com/wleelw/Hexo-Theme-slitude
316
316
  # Bilibili:
317
317
  # icon: scoicon sco-bilibili-line
318
318
  # url: https://space.bilibili.com/1329819902
@@ -617,6 +617,7 @@ theme_color:
617
617
  # --------------------------------------
618
618
  display_mode:
619
619
  type: auto # auto: 自动切换 / dark: 暗色模式 / light: 亮色模式 / auto: automatic switching / dark: dark mode / light: light mode
620
+ universe: true # 开启后暗色模式下会显示星空背景 / After opening, the dark mode will display the starry sky background
620
621
 
621
622
  # --------------------------------------
622
623
  # Footer Settings
@@ -729,6 +730,15 @@ fancybox: true
729
730
  # mediumZoom
730
731
  mediumZoom: false
731
732
 
733
+ # 简繁转换
734
+ # Simplified and Traditional Chinese conversion
735
+ translate:
736
+ enable: false
737
+ # the language of website (1 - Traditional Chinese/ 2 - Simplified Chinese)
738
+ defaultEncoding: 2
739
+ # Time delay
740
+ translateDelay: 0
741
+
732
742
  # Open Graph
733
743
  # https://ogp.me/
734
744
  # https://developers.facebook.com/docs/sharing/webmasters/
@@ -911,7 +921,7 @@ CDN:
911
921
  option:
912
922
  scoicon_css: https://cdn.cbd.int/solitude-source/icon/scoicon.min.css
913
923
  waterfall: https://cdn.cbd.int/solitude-source/js/waterfall.min.js
914
- view_image: https://cdn.cbd.int/solitude-source/js/view-image.min.js
924
+ universe_js: https://cdn.cbd.int/solitude-source/js/universe.min.js
915
925
  # algolia_search:
916
926
  # instantsearch:
917
927
  # pjax:
@@ -13,6 +13,10 @@ time:
13
13
  daybefore: Days ago
14
14
  runtime: days
15
15
 
16
+ chs:
17
+ chs_tw: Traditional Chinese
18
+ chs_cn: Simplified Chinese
19
+
16
20
  page:
17
21
  tag: Tags
18
22
  category: Categories
@@ -71,7 +75,7 @@ search:
71
75
 
72
76
  head:
73
77
  noscript: Please enable JavaScript to view the site
74
- console: 'Program: Hexo | Theme: Hexo-Theme-Solitude | Author: WangZhuoSco、YiFeng | Github: https://github.com/DuoSco/Hexo-theme-solitude | Version: v1.4.2 😄'
78
+ console: 'Program: Hexo | Theme: Hexo-Theme-Solitude | Author: WangZhuoSco、YiFeng | Github: https://github.com/wleelw/Hexo-theme-solitude | Version: v1.4.3 😄'
75
79
 
76
80
  aside:
77
81
  postcount: 'Posts :'
@@ -115,4 +119,29 @@ cookies:
115
119
  privacy: How this site protects your privacy
116
120
 
117
121
  music:
118
- hit: Paused
122
+ hit: Paused
123
+
124
+ rightmenu:
125
+ copytext: Copy the selected
126
+ pastetext: Paste the text
127
+ commenttext: Quote to comment
128
+ newwindow: A new window opens
129
+ copylink: Copy the link address
130
+ copyimg: Copy this image
131
+ downloadimg: Download this image
132
+ search: Search on the site
133
+ music:
134
+ toggle: Play music
135
+ back: Switch to the previous track
136
+ forward: Switch to the next track
137
+ playlist: See all songs
138
+ copyMusicName: Reproduction Song Name
139
+ randomPost: Feel free to wander around
140
+ categories: Article classification
141
+ tags: Article tags
142
+ copyaddress: Copy the address
143
+ commentBarrage: Turn off trending reviews
144
+ dark: Dark
145
+ light: Light
146
+ chs_to_cht: Traditional
147
+ cht_to_chs: Simplified
@@ -1,3 +1,4 @@
1
+ # Language: 简体中文
1
2
  theme:
2
3
  dark: 已切换至深色模式
3
4
  light: 已切换至浅色模式
@@ -13,6 +14,10 @@ time:
13
14
  daybefore: 天前
14
15
  runtime: 天
15
16
 
17
+ chs:
18
+ chs_tw: 繁體中文
19
+ chs_cn: 简体中文
20
+
16
21
  page:
17
22
  tag: 标签
18
23
  category: 分类
@@ -70,7 +75,7 @@ search:
70
75
 
71
76
  head:
72
77
  noscript: 开启JavaScript才能访问本站哦~
73
- console: '程序:Hexo | 主题:Hexo-Theme-Solitude | 作者:王卓Sco、亦封 | Github: https://github.com/DuoSco/Hexo-theme-solitude | 版本:v1.4.2 😄'
78
+ console: '程序:Hexo | 主题:Hexo-Theme-Solitude | 作者:王卓Sco、亦封 | Github: https://github.com/wleelw/Hexo-theme-solitude | 版本:v1.4.3 😄'
74
79
 
75
80
  aside:
76
81
  postcount: '文章总数 :'
@@ -114,4 +119,29 @@ cookies:
114
119
  privacy: 本站如何保护你的隐私
115
120
 
116
121
  music:
117
- hit: 音乐已暂停
122
+ hit: 音乐已暂停
123
+
124
+ rightmenu:
125
+ copytext: 复制选中文本
126
+ pastetext: 粘贴文本
127
+ commenttext: 引用到评论
128
+ newwindow: 新窗口打开
129
+ copylink: 复制链接地址
130
+ copyimg: 复制此图片
131
+ downloadimg: 下载此图片
132
+ search: 站内搜索
133
+ music:
134
+ toggle: 播放音乐
135
+ back: 切换到上一首
136
+ forward: 切换到下一首
137
+ playlist: 查看所有歌曲
138
+ copyMusicName: 复制歌名
139
+ randomPost: 随便逛逛
140
+ categories: 文章分类
141
+ tags: 文章标签
142
+ copyaddress: 复制地址
143
+ commentBarrage: 关闭热评
144
+ dark: 深色模式
145
+ light: 浅色模式
146
+ chs_to_cht: 轉為繁體
147
+ cht_to_chs: 转为简体
@@ -0,0 +1,147 @@
1
+ # Language: 繁體中文 (台灣)
2
+ theme:
3
+ dark: 已切換至深色模式
4
+ light: 已切換至淺色模式
5
+
6
+ copy:
7
+ success: 複製成功
8
+ error: 複製失敗
9
+
10
+ time:
11
+ recent: 最近
12
+ yesterday: 昨天
13
+ berforeyesterday: 前天
14
+ daybefore: 天前
15
+ runtime: 天
16
+
17
+ chs:
18
+ chs_tw: 繁體中文
19
+ chs_cn: 簡體中文
20
+
21
+ page:
22
+ tag: 標籤
23
+ category: 分類
24
+ tags: 全部標籤
25
+ categories: 全部分類
26
+ archives: 文章
27
+ 404: 頁面沒有找到
28
+
29
+ nav:
30
+ site_name_title: 返回博客主頁
31
+ backtop: 返回頂部
32
+ travellings: 開往-友鏈接力
33
+ search: 搜索
34
+ randompost: 隨機一篇文章
35
+ console: 中控台
36
+
37
+ home:
38
+ bannertext: 隨便逛逛
39
+ categoryBar:
40
+ home: 首頁
41
+ more: 更多
42
+ recent-post:
43
+ sticky: 置頂
44
+ new: 最新
45
+ read: 未讀
46
+ top-group:
47
+ recommend: 荐
48
+ recommendmore: 更多推薦
49
+
50
+ post:
51
+ meta_reprint: 轉載或翻譯
52
+ meta_original: 原創
53
+ meta_cc: 該文章為${cc}文章,注意版權協議
54
+ meta_posted: 發布於
55
+ meta_updated: 最後更新於
56
+ meta_wordcount: 文章字數
57
+ meta_minread: 閱讀耗時
58
+ meta_ip: 作者IP歸屬地為
59
+ meta_pv: 文章熱度
60
+ meta_comment: 評論數
61
+
62
+ award:
63
+ wechat: 微信
64
+ alipay: 支付寶
65
+ about:
66
+ tip: 致謝
67
+ tip1: 贊助作者
68
+ tip2: 感謝你賜予我前進的力量
69
+ title: 贊助作者
70
+
71
+ search:
72
+ empty: 找不到你查詢的內容:${query}
73
+ hit: 找到 ${hits} 條結果,用時 ${time} 毫秒
74
+ placeholder: 輸入關鍵詞快速查找
75
+
76
+ head:
77
+ noscript: 開啟JavaScript才能訪問本站哦~
78
+ console: '程式:Hexo |主題:Hexo-Theme-Solitude |作者:王卓Sco、亦封 |Github位址: https://github.com/wleelw/Hexo-theme-solitude |版本:v1.4.3 😄'
79
+
80
+ aside:
81
+ postcount: '文章數:'
82
+ pv: '瀏覽量:'
83
+ uv: '訪客數:'
84
+ runtime: '運行時間:'
85
+ updatetime: '最後更新:'
86
+ wordcount: '字數統計:'
87
+ toc: 文章目錄
88
+ tagmore: 查看全部
89
+ avatar: 头像
90
+ sticker: 心情贴纸
91
+ newpost: 最近发布
92
+
93
+ console:
94
+ comment_tip: 互動
95
+ comment_title: 評論
96
+ tag_tip: 標籤
97
+ tag_title: 標籤
98
+ switch_darkmode: 昼夜切換
99
+ switch_hideAside: 边栏显示控制
100
+ switch_keyboard: 鍵盤快捷鍵
101
+ switch_music: 音樂開關
102
+ archive_unit: 篇
103
+
104
+ sidebar:
105
+ title1: 功能
106
+ title2: 標籤
107
+ darkmode: 顯示模式
108
+
109
+ footer:
110
+ description: 來自${title}的文章
111
+ learnmore: 了解更多
112
+ randomlink: 友鏈
113
+ rss: 訂閱
114
+ theme: 主題
115
+
116
+ cookies:
117
+ title: 協議提醒助手
118
+ tip: 查看本站為你的個人隱私做出的努力
119
+ privacy: 本站如何保護你的隱私
120
+
121
+ music:
122
+ hit: 音樂已暫停
123
+
124
+ rightmenu:
125
+ copytext: 複製選中文本
126
+ pastetext: 粘貼文本
127
+ commenttext: 引用到評論
128
+ newwindow: 新窗口打開
129
+ copylink: 複製連結位址
130
+ copyimg: 複製此圖片
131
+ downloadimg: 下載此圖片
132
+ search: 站內搜索
133
+ music:
134
+ toggle: 播放音樂
135
+ back: 切換到上一首
136
+ forward: 切換到下一首
137
+ playlist: 查看所有歌曲
138
+ copyMusicName: 複製歌名
139
+ randomPost: 随便逛逛
140
+ categories: 文章分類
141
+ tags: 文章標籤
142
+ copyaddress: 複製位址
143
+ commentBarrage: 關閉熱評
144
+ dark: 深色模式
145
+ light: 淺色模式
146
+ chs_to_cht: 轉為繁體
147
+ cht_to_chs: 转为简体
@@ -51,7 +51,7 @@ div#footer-bar
51
51
  div.footer-bar-right
52
52
  if theme.footer.rss
53
53
  a.footer-bar-link(href=theme.footer.rss)= _p('footer.rss')
54
- a.footer-bar-link(href="https://github.com/DuoSco/hexo-theme-solitude")= _p('footer.theme')
54
+ a.footer-bar-link(href="https://github.com/wleelw/hexo-theme-solitude")= _p('footer.theme')
55
55
  if theme.site && theme.site.icp
56
56
  a.footer-bar-link(href=theme.site.icp_url || "https://beian.miit.gov.cn/#/Integrated/index")= theme.site.icp
57
57
  a.footer-bar-link.cc(href=theme.footer.license)
@@ -22,6 +22,14 @@
22
22
  }
23
23
  }
24
24
 
25
+ let translate = 'undefined';
26
+ if (theme.translate && theme.translate.enable) {
27
+ translate = JSON.stringify({
28
+ defaultEncoding: theme.translate.defaultEncoding,
29
+ translateDelay: theme.translate.translateDelay,
30
+ })
31
+ }
32
+
25
33
  const commentInfoStart = theme.comment.randomInfoStart.map(item => `"${item}"`) || ""
26
34
  const commentInfoEnd = theme.comment.randomInfoEnd.map(item => `"${item}"`) || ""
27
35
  var sayhello2 = theme.aside.card.sayhello2.map(item => `"${item}"`) || []
@@ -64,6 +72,10 @@ script.
64
72
  empty: '!{_p('search.empty')}',
65
73
  hit: '!{_p('search.hit')}',
66
74
  placeholder: '!{_p('search.placeholder')}',
75
+ },
76
+ chs: {
77
+ chs_to_cht: '!{_p('chs.chs_tw')}',
78
+ cht_to_chs: '!{_p('chs.chs_cn')}',
67
79
  }
68
80
  },
69
81
  aside: {
@@ -93,7 +105,7 @@ script.
93
105
  url: '!{theme.comment.waline.envId}',
94
106
  }
95
107
  },
96
- lightbox: '!{ theme.mediumZoom ? "mediumZoom" : (theme.fancybox ? "fancybox" : "null" )}',
108
+ lightbox: '!{ theme.mediumZoom ? "mediumZoom" : (theme.fancybox ? "fancybox" : "null")}',
97
109
  rightside: {
98
110
  enable: !{theme.rightside.enable}
99
111
  },
@@ -105,5 +117,6 @@ script.
105
117
  },
106
118
  music: {
107
119
  enable: !{theme.music.enable},
108
- }
120
+ },
121
+ translate: !{translate},
109
122
  }
@@ -6,6 +6,18 @@ div
6
6
  if theme.album.enable
7
7
  script(src=url_for(theme.cdn.macy_js))
8
8
 
9
+ if theme.rightside.enable
10
+ include ../widgets/rightside/index
11
+ script(src=url_for(theme.cdn.rightside_js))
12
+
13
+ if theme.display_mode.universe
14
+ script(src=url_for(theme.cdn.universe_js))
15
+ script.
16
+ dark()
17
+
18
+ if theme.translate.enable
19
+ script(src=url_for(theme.cdn.translate))
20
+
9
21
  mixin katex
10
22
  link(rel="stylesheet", href=url_for(theme.cdn.katex))
11
23
  if theme.katex.copytex
@@ -37,10 +49,6 @@ div
37
49
  if theme.says.home_mini
38
50
  script(src=url_for(theme.cdn.swiper_js))
39
51
 
40
- if theme.rightside.enable
41
- include ../widgets/rightside/index
42
- script(src=url_for(theme.cdn.rightside_js))
43
-
44
52
  // post-ai)
45
53
  if theme.post_ai.enable
46
54
  script(src=url_for(theme.cdn.sco_ai_js))
@@ -5,6 +5,10 @@ html(lang=config.language, data-theme="light")
5
5
  head
6
6
  include ./head.pug
7
7
  body#body(data-type=page.type)
8
+ // universe
9
+ if theme.display_mode.universe
10
+ canvas#universe
11
+
8
12
  // loading
9
13
  if theme.loading.fullpage
10
14
  include ./loading.pug
@@ -1,7 +1,7 @@
1
1
  include ../widgets/page/banner
2
2
 
3
3
  - var gallery = site.data.gallery.gallery
4
- - var album = gallery.find(item => item.album = page.album)
4
+ - var album = gallery.find(item => item.album === page.album)
5
5
  - var {limit} = theme.album
6
6
 
7
7
  if album
@@ -11,12 +11,7 @@ if album
11
11
  script.
12
12
  function initGallery() {
13
13
  let macy = Macy({ container: '#sco-container', trueOrder: false, waitForImages: true, margin: 5, columns: !{limit}, breakAt: { 1200: 5, 940: 3, 520: 2, 400: 1 }})
14
- macy.runOnImageLoad(function () {
15
- setTimeout(function () {
16
- GLOBAL_CONFIG.lightbox && utils.lightbox(document.querySelectorAll(".sco-gallery-item img"));
17
- macy.recalculate(true)
18
- }, 500);
19
- }, true)
14
+ macy.runOnImageLoad(function () { setTimeout(function () { GLOBAL_CONFIG.lightbox && utils.lightbox(document.querySelectorAll(".sco-gallery-item img")); macy.recalculate(true); }, 500); }, true)
20
15
  }
21
16
  (async function () {
22
17
  await fetch('!{url_for(album.json)}')
@@ -24,14 +19,7 @@ if album
24
19
  .then(data => {
25
20
  let html = ''
26
21
  data = data.sort((a, b) => b.date - a.date)
27
- data.forEach(item => {
28
- html += `
29
- <div class="sco-gallery-item">
30
- <span class="locate">${item.locate}</span>
31
- <img class="sco-gallery-image" src="${item.image}" alt="${item.content}">
32
- </div>
33
- `
34
- })
22
+ data.forEach(item => { html += `<div class="sco-gallery-item"><span class="locate">${item.locate}</span><img class="sco-gallery-image" src="${item.image}" alt="${item.content}"></div>` })
35
23
  document.querySelector('#sco-container').innerHTML = html
36
24
  GLOBAL_CONFIG.lazyload.enable && utils.lazyloadImg();
37
25
  initGallery()
@@ -46,11 +34,6 @@ if album
46
34
  script.
47
35
  function initGallery(){
48
36
  let macy = Macy({ container: '#sco-container', trueOrder: false, waitForImages: true, margin: 5, columns: !{limit}, breakAt: { 1200: 5, 940: 3, 520: 2, 400: 1 }})
49
- macy.runOnImageLoad(function () {
50
- setTimeout(function () {
51
- GLOBAL_CONFIG.lightbox && utils.lightbox(document.querySelectorAll(".sco-gallery-item img"));
52
- macy.recalculate(true)
53
- }, 500);
54
- }, true)
37
+ macy.runOnImageLoad(function () { setTimeout(function () { GLOBAL_CONFIG.lightbox && utils.lightbox(document.querySelectorAll(".sco-gallery-item img")); macy.recalculate(true); }, 500); }, true)
55
38
  }
56
39
  document.addEventListener('DOMContentLoaded', initGallery);
@@ -13,7 +13,4 @@ if theme.music.enable
13
13
  volume: #{theme.music.volume},
14
14
  mutex: #{theme.music.mutex}
15
15
  }
16
- }
17
-
18
- else
19
- include not_configured
16
+ }
@@ -14,6 +14,4 @@ if theme.says.enable
14
14
  if theme.says.strip === -1
15
15
  | - 已展开所有短文 -
16
16
  else
17
- | - 只展示最近 #{theme.says.strip} 条短文 -
18
- else
19
- include ./not_configured.pug
17
+ | - 只展示最近 #{theme.says.strip} 条短文 -
@@ -17,6 +17,7 @@ script.
17
17
  return `<div class="li-style swiper-slide">${content}</div>`;
18
18
  }).join('');
19
19
 
20
- sco.initbbtalk();
20
+ document.addEventListener('DOMContentLoaded', sco.initbbtalk)
21
+ document.addEventListener('pjax:complete', sco.initbbtalk)
21
22
  }).catch(err => console.log('bbtime |', err));
22
23
  }();
@@ -12,6 +12,5 @@ each item, i in site.data.essay.essay_list.slice(0, 10)
12
12
  if item.link
13
13
  i.scoicon.sco-links
14
14
  script.
15
- document.addEventListener('DOMContentLoaded', function () {
16
- sco.initbbtalk()
17
- })
15
+ document.addEventListener('DOMContentLoaded', sco.initbbtalk)
16
+ document.addEventListener('pjax:complete', sco.initbbtalk)
@@ -19,7 +19,8 @@ script.
19
19
 
20
20
  return `<div class="li-style swiper-slide">${content+aplayer+video+imageBox+link}</div>`
21
21
  }).join(' ')
22
- sco.initbbtalk()
22
+ document.addEventListener('DOMContentLoaded', sco.initbbtalk)
23
+ document.addEventListener('pjax:complete', sco.initbbtalk)
23
24
  })
24
25
  .catch(error => console.error('bbtime | ', error));
25
26
  }()
@@ -10,4 +10,4 @@ if authorinfo
10
10
  .author-tag-right
11
11
  each tag in authorinfo.rightTags
12
12
  span.author-tag= tag
13
- .author-title= authorinfo.title
13
+ .author-title= site.data.about.title
@@ -1,5 +1,5 @@
1
- - var game1 = game1
2
- - var game2 = game2
1
+ - var game1 = site.data.about.game1
2
+ - var game2 = site.data.about.game2
3
3
 
4
4
  if game1 || game2
5
5
  .author-content
@@ -3,18 +3,20 @@
3
3
 
4
4
  if motto || expertise
5
5
  .author-content
6
- .author-content-item.maxim
7
- .author-content-item-tips= motto.title
8
- span.maxim-title
9
- span= motto.prefix
10
- span= motto.content
11
- .author-content-item.buff
12
- .card-content
13
- .author-content-item-tips= expertise.title
14
- span.buff-title
15
- span
16
- | #{expertise.prefix}
17
- span.inline-word= expertise.specialist
18
- span
19
- | #{expertise.content}
20
- span.inline-word= expertise.level
6
+ if motto
7
+ .author-content-item.maxim
8
+ .author-content-item-tips= motto.title
9
+ span.maxim-title
10
+ span= motto.prefix
11
+ span= motto.content
12
+ if expertise
13
+ .author-content-item.buff
14
+ .card-content
15
+ .author-content-item-tips= expertise.title
16
+ span.buff-title
17
+ span
18
+ | #{expertise.prefix}
19
+ span.inline-word= expertise.specialist
20
+ span
21
+ | #{expertise.content}
22
+ span.inline-word= expertise.level
@@ -1,40 +1,42 @@
1
1
  - var skills = site.data.about.skills
2
2
  - var careers = site.data.about.careers
3
3
 
4
- if skills || caches
4
+ if skills || careers
5
5
  .author-content
6
- .author-content-item.skills
7
- .card-content
8
- .author-content-item-tips= skills.title
9
- span.author-content-item-title= skills.subtitle
10
- .skills-style-group
11
- .tags-group-all
12
- .tags-group-wrapper
13
- each i in [1,2]
14
- - var pair = []
15
- each tag, index in skills.tags
16
- - pair.push(tag)
17
- if pair.length === 2 || index === skills.tags.length - 1
18
- .tags-group-icon-pair
19
- each item in pair
20
- .tags-group-icon(style=`background:${item.color}`)
21
- img(src=item.icon, title=item.title)
22
- - pair = []
23
- .skills-list
24
- each tag in skills.tags
25
- .skill-info
26
- .skill-icon(style=`background:${tag.color}`)
27
- img(src=tag.icon, title=tag.title)
28
- .skill-name
29
- span= tag.title
30
- .etc ...
31
- .author-content-item.careers
32
- .card-content
33
- .author-content-item-tips= careers.title
34
- span.author-content-item-title= careers.subtitle
35
- .careers-group
36
- each item in careers.items
37
- .careers-item
38
- .circle(style=`background:${item.color}`)
39
- .name= `${item.school}, ${item.major}`
40
- img.author-content-img(src=careers.image, alt=careers.title)
6
+ if skills
7
+ .author-content-item.skills
8
+ .card-content
9
+ .author-content-item-tips= skills.title
10
+ span.author-content-item-title= skills.subtitle
11
+ .skills-style-group
12
+ .tags-group-all
13
+ .tags-group-wrapper
14
+ each i in [1,2]
15
+ - var pair = []
16
+ each tag, index in skills.tags
17
+ - pair.push(tag)
18
+ if pair.length === 2 || index === skills.tags.length - 1
19
+ .tags-group-icon-pair
20
+ each item in pair
21
+ .tags-group-icon(style=`background:${item.color}`)
22
+ img(src=item.icon, title=item.title)
23
+ - pair = []
24
+ .skills-list
25
+ each tag in skills.tags
26
+ .skill-info
27
+ .skill-icon(style=`background:${tag.color}`)
28
+ img(src=tag.icon, title=tag.title)
29
+ .skill-name
30
+ span= tag.title
31
+ .etc ...
32
+ if careers
33
+ .author-content-item.careers
34
+ .card-content
35
+ .author-content-item-tips= careers.title
36
+ span.author-content-item-title= careers.subtitle
37
+ .careers-group
38
+ each item in careers.items
39
+ .careers-item
40
+ .circle(style=`background:${item.color}`)
41
+ .name= `${item.school}, ${item.major}`
42
+ img.author-content-img(src=careers.image, alt=careers.title)