hexo-theme-solitude 1.8.5 → 1.8.6

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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- 简体中文丨[繁体中文](README_zh-tw.md)丨[English](README_en.md)
1
+ 简体中文丨[繁体中文](README_zh-Hant.md)丨[English](README_en-US.md)丨[Français](README_fr.md)丨[日本語](README_ja.md)
2
2
 
3
3
  <div align="center">
4
4
 
@@ -1,4 +1,4 @@
1
- [简体中文](README.md)丨[繁体中文](README_zh-tw.md)丨English
1
+ [简体中文](README.md)丨[繁体中文](README_zh-Hant.md)丨English丨[Français](README_fr.md)丨[日本語](README_ja.md)
2
2
 
3
3
  <div align="center">
4
4
 
package/README_fr.md ADDED
@@ -0,0 +1,90 @@
1
+ [简体中文](README.md)丨[繁体中文](README_zh-Hant.md)丨[English](README_en-US.md)丨Français丨[日本語](README_ja.md)
2
+
3
+ <div align="center">
4
+
5
+ <img src=".github/logo.svg" alt="Logo de la solitude" height="200">
6
+
7
+ <h1>Thème Hexo Solitude</h1>
8
+
9
+ Un thème Hexo élégant qui prend en charge le chargement paresseux, les PWA, le latex et les systèmes de commentaires
10
+ multiples.
11
+
12
+ Le thème se compose de [@张洪Heo](https://github.com/zhheo) Autorisation complète de l’auteur, conception !
13
+
14
+ ![npm package](https://img.shields.io/npm/v/hexo-theme-solitude?logo=npm)
15
+ ![release](https://img.shields.io/github/package-json/v/valor-x/hexo-theme-solitude/master?color=%231ab1ad&label=release)
16
+ ![license](https://img.shields.io/github/license/valor-x/hexo-theme-solitude?color=FF5531)
17
+ [![Stars](https://img.shields.io/github/stars/valor-x/hexo-theme-solitude)](https://github.com/valor-x/hexo-theme-solitude/stargazers)
18
+ [![NPM all downloads](https://img.shields.io/npm/dy/hexo-theme-solitude?color=white)](https://www.npmjs.com/package/hexo-theme-solitude)
19
+
20
+ ![hexo version](https://img.shields.io/badge/hexo-7.0.0+-blue?logo=hexo&logoColor=white)
21
+ ![node version](https://img.shields.io/badge/node-14.0.0-white?logo=node.js&logoColor=white)
22
+
23
+ ![Latex](https://img.shields.io/badge/latex-20B2AA?logo=Latex)
24
+ ![Ads](https://img.shields.io/badge/Google_Ads-black?logo=googleads)
25
+ ![algolia](https://img.shields.io/badge/algolia-457AFF?logo=algolia)
26
+
27
+ ![cdnjs](https://img.shields.io/badge/cdnjs-orange?logo=Cloudflare&logoColor=white)
28
+ ![A11y](https://img.shields.io/badge/A11y-green?logo=%C3%8Ele-de-France%20Mobilit%C3%A9s&logoColor=white)
29
+ ![mermaid](https://img.shields.io/badge/mermaid-ff3670?logo=mermaid&logoColor=white)
30
+ [![pwa](https://img.shields.io/badge/pwa-red?logo=pwa)](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps)
31
+
32
+ [![twiter](https://img.shields.io/badge/Twitter-gray?logo=x)](https://twitter.com/efu_oo)
33
+ [![TG](https://img.shields.io/badge/Telegram-gray?logo=Telegram&logoColor=white)](https://t.me/solitudePro)
34
+ [![Discord](https://img.shields.io/discord/1218118131428495430?label=Discord&logo=Discord&labelColor=white&color=black)](https://discord.gg/Y8VEvVgW)
35
+
36
+ ![JetBrains](https://img.shields.io/badge/jetbrains-support-black?logo=jetbrains)
37
+ ![DuoLingo](https://img.shields.io/badge/duolingo-support-black?logo=duolingo&logoColor=white)
38
+
39
+ [![gitee](https://img.shields.io/badge/Gitee-red?logo=gitee)](https://gitee.com/nsjjd_w/hexo-theme-solitude)
40
+ [![gitlab](https://img.shields.io/badge/GitLab-blue?logo=gitlab)](https://gitlab.com/efu/hexo-theme-solitude)
41
+
42
+ [Aperçu](https://www.efu.me/) 丨 [documentation](https://solitude-docs.efu.me/)
43
+
44
+ </div>
45
+
46
+ ![Screenshot](.github/screenshot.png)
47
+
48
+ ## caractéristique
49
+
50
+ - Chargement paresseux de page (Pjax), chargement paresseux d’image (LazyLoad), application hors ligne (PWA)
51
+ - Commentaires (Twikoo, Waline, Valine, Artalk)
52
+ - Mode couleur
53
+ - Lightbox (zoom moyen, fancybox)
54
+ - Formules mathématiques (latex)
55
+ - Pages en vedette : Essais instantanés, Mon équipement, Outils en ligne, Galerie de musique, Étang à poissons Friend
56
+ Chain, Page d’album photo, Page Douban
57
+ - Caractéristiques de l’article : résumé de l’IA, mise en évidence du code
58
+
59
+ ## Todo
60
+
61
+ - [x] Examen d’Artalk
62
+ - [x] Double examen
63
+ - [x] album photo
64
+
65
+ > Si vous avez des questions, n’hésitez pas à les poser [issue](https://github.com/valor-x/hexo-theme-solitude/issues)
66
+
67
+ ## appliquer
68
+
69
+ 1. Utiliser le package NPM pour l’installation
70
+ ```bash
71
+ npm i hexo-theme-solitude
72
+ ```
73
+ 2. Appliquer un thème
74
+ ```yaml
75
+ theme: solitude
76
+ ```
77
+
78
+ Go to [Docs](https://solitude-docs.efu.me) for more information.
79
+
80
+ ## Sponsors
81
+
82
+ <p align="center">
83
+ <a href="https://cdn.jsdelivr.net/gh/efuo/static/sponsors.svg">
84
+ <img src='https://cdn.jsdelivr.net/gh/efuo/static/sponsors.svg'/>
85
+ </a>
86
+ </p>
87
+
88
+ ## copyright
89
+
90
+ [MIT](./LICENSE) License &copy; 2023-jusqu’ici [Efu](https://github.com/efuo)
package/README_ja.md ADDED
@@ -0,0 +1,88 @@
1
+ [简体中文](README.md)丨[繁体中文](README_zh-Hant.md)丨[English](README_en-US.md)丨[Français](README_fr.md)丨日本語
2
+
3
+ <div align="center">
4
+
5
+ <img src=".github/logo.svg" alt="Solitude logo" height="200">
6
+
7
+ <h1>ヘキソテーマソリチュード</h1>
8
+
9
+ 遅延読み込み、PWA、ラテックス、および複数のコメントシステムをサポートするエレガントなHexoテーマ。
10
+
11
+ テーマは、 [@张洪Heo](https://github.com/zhheo) 著者の完全な権限、デザイン!
12
+
13
+ ![npm package](https://img.shields.io/npm/v/hexo-theme-solitude?logo=npm)
14
+ ![release](https://img.shields.io/github/package-json/v/valor-x/hexo-theme-solitude/master?color=%231ab1ad&label=release)
15
+ ![license](https://img.shields.io/github/license/valor-x/hexo-theme-solitude?color=FF5531)
16
+ [![Stars](https://img.shields.io/github/stars/valor-x/hexo-theme-solitude)](https://github.com/valor-x/hexo-theme-solitude/stargazers)
17
+ [![NPM all downloads](https://img.shields.io/npm/dy/hexo-theme-solitude?color=white)](https://www.npmjs.com/package/hexo-theme-solitude)
18
+
19
+ ![hexo version](https://img.shields.io/badge/hexo-7.0.0+-blue?logo=hexo&logoColor=white)
20
+ ![node version](https://img.shields.io/badge/node-14.0.0-white?logo=node.js&logoColor=white)
21
+
22
+ ![Latex](https://img.shields.io/badge/latex-20B2AA?logo=Latex)
23
+ ![Ads](https://img.shields.io/badge/Google_Ads-black?logo=googleads)
24
+ ![algolia](https://img.shields.io/badge/algolia-457AFF?logo=algolia)
25
+
26
+ ![cdnjs](https://img.shields.io/badge/cdnjs-orange?logo=Cloudflare&logoColor=white)
27
+ ![A11y](https://img.shields.io/badge/A11y-green?logo=%C3%8Ele-de-France%20Mobilit%C3%A9s&logoColor=white)
28
+ ![mermaid](https://img.shields.io/badge/mermaid-ff3670?logo=mermaid&logoColor=white)
29
+ [![pwa](https://img.shields.io/badge/pwa-red?logo=pwa)](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps)
30
+
31
+ [![twiter](https://img.shields.io/badge/Twitter-gray?logo=x)](https://twitter.com/efu_oo)
32
+ [![TG](https://img.shields.io/badge/Telegram-gray?logo=Telegram&logoColor=white)](https://t.me/solitudePro)
33
+ [![Discord](https://img.shields.io/discord/1218118131428495430?label=Discord&logo=Discord&labelColor=white&color=black)](https://discord.gg/Y8VEvVgW)
34
+
35
+ ![JetBrains](https://img.shields.io/badge/jetbrains-support-black?logo=jetbrains)
36
+ ![DuoLingo](https://img.shields.io/badge/duolingo-support-black?logo=duolingo&logoColor=white)
37
+
38
+ [![gitee](https://img.shields.io/badge/Gitee-red?logo=gitee)](https://gitee.com/nsjjd_w/hexo-theme-solitude)
39
+ [![gitlab](https://img.shields.io/badge/GitLab-blue?logo=gitlab)](https://gitlab.com/efu/hexo-theme-solitude)
40
+
41
+ [プレビュー](https://www.efu.me/) 丨 [ドキュメンテーション](https://solitude-docs.efu.me/)
42
+
43
+ </div>
44
+
45
+ ![Screenshot](.github/screenshot.png)
46
+
47
+ ## 特性
48
+
49
+ - ページ遅延読み込み(Pjax)、画像遅延読み込み(LazyLoad)、オフラインアプリケーション(PWA)
50
+ - コメント(Twikoo、Waline、Valine、Artalk)
51
+ - カラーモード
52
+ - ライトボックス(中ズーム、ファンシーボックス)
53
+ - 数式(ラテックス)
54
+ - 注目のページ:インスタントエッセイ、マイ機器、オンラインツール、ミュージックギャラリー、フレンドチェーンフィッシュポンド、フォトアルバムページ、Doubanページ
55
+ - 記事の特徴:AIの要約、コードの強調表示
56
+
57
+ ## すべての
58
+
59
+ - [x] Artalkレビュー
60
+ - [x] ダブルレビュー
61
+ - [x] 写真集
62
+
63
+ > ご不明な点がございましたら、お問い合わせください [issue](https://github.com/valor-x/hexo-theme-solitude/issues)
64
+
65
+ ## 申し込む
66
+
67
+ 1. インストールに NPM パッケージを使用する
68
+ ```bash
69
+ npm i hexo-theme-solitude
70
+ ```
71
+ 2. テーマを適用する
72
+ ```yaml
73
+ theme: solitude
74
+ ```
75
+
76
+ 詳しくは [Docs](https://solitude-docs.efu.me) をご覧ください。
77
+
78
+ ## スポンサー
79
+
80
+ <p align="center">
81
+ <a href="https://cdn.jsdelivr.net/gh/efuo/static/sponsors.svg">
82
+ <img src='https://cdn.jsdelivr.net/gh/efuo/static/sponsors.svg'/>
83
+ </a>
84
+ </p>
85
+
86
+ ## 著作権
87
+
88
+ [MIT](./LICENSE) License &copy; 2023-これまで [Efu](https://github.com/efuo)
@@ -1,4 +1,4 @@
1
- [简体中文](README.md)丨繁体中文丨[English](README_en.md)
1
+ [简体中文](README.md)丨繁体中文丨[English](README_en-US.md)丨[Français](README_fr.md)丨[日本語](README_ja.md)
2
2
 
3
3
  <div align="center">
4
4
 
@@ -0,0 +1,188 @@
1
+ more: More
2
+ star: Behold, those who found delight in this piece also perused
3
+ random: Around
4
+ upload: 'datetime: '
5
+ totalk: You don't need to delete blank lines, just type in your comments.
6
+
7
+ theme:
8
+ dark: dark
9
+ light: light
10
+
11
+ copy:
12
+ success: Copied
13
+ error: Copied failed
14
+
15
+ copy_copyright:
16
+ author: Author
17
+ link: Link
18
+ source: Source
19
+ 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
+
21
+ time:
22
+ day: " days ago"
23
+ hour: " hours ago"
24
+ just: "just"
25
+ min: " minutes ago"
26
+ month: " months ago"
27
+
28
+ page:
29
+ tag: Tags
30
+ category: Categories
31
+ tags: All tags
32
+ categories: All categories
33
+ archives: Archives
34
+ 404: Page not found
35
+
36
+ home:
37
+ home: Home
38
+ sticky: Sticky
39
+ new: New
40
+ read: Unread
41
+ recommendmore: More
42
+
43
+ post:
44
+ reprint: Reprint
45
+ original: Original
46
+ cc: This article is a ${cc} article, pay attention to the copyright.
47
+ posted: Posted on
48
+ updated: Last updated on
49
+ wordcount: Word count
50
+ minread: Reading time
51
+ ip: The author's IP belongs to
52
+ pv: PV
53
+ comment: Comments
54
+ copyright:
55
+ 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.
56
+ original: This piece of writing is an original article, utilizing the
57
+ original_end: Agreement. For complete reproduction, please acknowledge the source as Courtesy of
58
+
59
+ nav:
60
+ site_name_title: Back to home
61
+ backtop: Back to top
62
+ travellings: Traveling - Friends Link
63
+ search: Search
64
+ randompost: Random post
65
+ console: Console
66
+
67
+ award:
68
+ thanks: Thanks
69
+ tipping: Tipping
70
+ title: List of appreciation
71
+
72
+ search:
73
+ empty: No results found
74
+ hit: Found ${query} results for you
75
+ placeholder: Enter keywords to quickly search
76
+ count: Total <b>${count}</b> results.
77
+
78
+ head:
79
+ noscript: Please enable JavaScript to view the site
80
+
81
+ aside:
82
+ postcount: 'Posts :'
83
+ pv: 'PV :'
84
+ uv: 'UV :'
85
+ runtime: 'Runtime :'
86
+ updatetime: 'Last update :'
87
+ wordcount: 'Word count :'
88
+ toc: Table of contents
89
+ tagmore: View all
90
+ avatar: Avatar
91
+ sticker: Mood sticker
92
+ newpost: New posts
93
+
94
+ console:
95
+ comment_tip: Interaction
96
+ comment_title: Latest comments
97
+ tag_tip: Tags
98
+ tag_title: Find interesting areas
99
+ switch_darkmode: Day and night switching
100
+ switch_hideAside: Sidebar display control
101
+ switch_keyboard: Keyboard operation
102
+ switch_music: Music switch
103
+ archive_unit: Posts
104
+ newest_comment:
105
+ image: Image
106
+ link: Link
107
+ code: Code
108
+
109
+ sidebar:
110
+ function: Function
111
+ darkmode: Display mode
112
+
113
+ footer:
114
+ description: Article from ${title}
115
+ learnmore: Learn more
116
+ randomlink: Links
117
+ rss: Subscribe
118
+ theme: Theme
119
+
120
+ cookies:
121
+ title: Agreement reminder assistant
122
+ tip: Check out the efforts we make to protect your privacy
123
+ privacy: How this site protects your privacy
124
+
125
+ music:
126
+ hit: Paused
127
+
128
+ 404:
129
+ button: Back to home
130
+
131
+ link:
132
+ banner:
133
+ toComment: Application link
134
+ random: Random Visit
135
+ random: You are about to ⌈ ${name} ⌋ , security unknown.
136
+
137
+ keyboard:
138
+ title: Blog shortcuts
139
+
140
+ newest_comment:
141
+ error: Unable to get a comment, please confirm that the relevant configuration is correct.
142
+ zero: No comments.
143
+
144
+ comment:
145
+ title: ' Comment'
146
+
147
+ commentBarrage:
148
+ title: Hot
149
+
150
+ f12: Developer mode is turned on, please follow the GPL.
151
+
152
+ right_menu:
153
+ copy: Copy
154
+ paste: Paste
155
+ comment: ToTalk
156
+ new: Open
157
+ link: Copy
158
+ img: Copy
159
+ downloadImg: Download
160
+ search: Search
161
+ dark: Light
162
+ light: Dark
163
+ chs_to_cht: 轉為繁體
164
+ cht_to_chs: 转为简体
165
+ img_error: This image cannot be copied or downloaded.
166
+ barrage:
167
+ open: OpenBarrage
168
+ close: CloseBarrage
169
+ music:
170
+ start: Play
171
+ stop: Pause
172
+ back: Back
173
+ forward: Forward
174
+ copyMusicName: CopyName
175
+
176
+ about:
177
+ other:
178
+ oneself:
179
+ map_title: I live in
180
+ info_title1: Born
181
+ info_title2: Now occupational
182
+ tj:
183
+ tip: Data
184
+ title: Access statistics
185
+ post_tip: 'Stats from:'
186
+ personalities:
187
+ tip1: At
188
+ tip2: 'Learn more:'
package/languages/en.yml CHANGED
@@ -171,4 +171,18 @@ right_menu:
171
171
  stop: Pause
172
172
  back: Back
173
173
  forward: Forward
174
- copyMusicName: CopyName
174
+ copyMusicName: CopyName
175
+
176
+ about:
177
+ other:
178
+ oneself:
179
+ map_title: I live in
180
+ info_title1: Born
181
+ info_title2: Now occupational
182
+ tj:
183
+ tip: Data
184
+ title: Access statistics
185
+ post_tip: 'Stats from:'
186
+ personalities:
187
+ tip1: At
188
+ tip2: 'Learn more:'
@@ -174,3 +174,17 @@ right_menu:
174
174
  back: 切换到上一首
175
175
  forward: 切换到下一首
176
176
  copyMusicName: 复制歌名
177
+
178
+ about:
179
+ other:
180
+ oneself:
181
+ map_title: 我现在住在
182
+ info_title1: 生于
183
+ info_title2: 现在职业
184
+ tj:
185
+ tip: 数据
186
+ title: 访问统计
187
+ post_tip: 统计信息来自
188
+ personalities:
189
+ tip1: 在
190
+ tip2: 了解更多关于
@@ -173,4 +173,18 @@ right_menu:
173
173
  stop: 暫停音樂
174
174
  back: 切換到上一首
175
175
  forward: 切換到下一首
176
- copyMusicName: 複製歌名
176
+ copyMusicName: 複製歌名
177
+
178
+ about:
179
+ other:
180
+ oneself:
181
+ map_title: 我現在住在
182
+ info_title1: 生於
183
+ info_title2: 現在職業
184
+ tj:
185
+ tip: 數據
186
+ title: 訪問統計
187
+ post_tip: 統計信息來自
188
+ personalities:
189
+ tip1: 在
190
+ tip2: 瞭解更多關於
@@ -1,5 +1,6 @@
1
1
  if theme.pwa.enable
2
2
  meta(name="theme-color", content=theme.pwa.theme_color)
3
+ meta(name="apple-mobile-web-app-status-bar-style", content=theme.pwa.theme_color)
3
4
  link(rel="manifest" href=url_for(theme.pwa.manifest))
4
5
  if theme.pwa.theme_color
5
6
  meta(name="msapplication-TileColor" content=theme.pwa.theme_color)
@@ -15,5 +16,7 @@ if theme.pwa.enable
15
16
  link(rel="bookmark", href=url_for(theme.pwa.bookmark_icon))
16
17
  else
17
18
  meta(name="apple-mobile-web-app-capable", content=config.title)
19
+ meta(name="theme-color", content="var(--efu-main)")
20
+ meta(name="apple-mobile-web-app-status-bar-style", content="var(--efu-main)")
18
21
  link(rel="bookmark", href=url_for(theme.site.siteIcon))
19
22
  link(rel="apple-touch-icon", href=url_for(theme.site.siteIcon), sizes="180x180")
@@ -93,12 +93,8 @@ div
93
93
  carousel_swiper()
94
94
  if page.type === 'says' && theme.says.enable
95
95
  script.
96
- setTimeout(() => {
97
- sco.refreshWaterFall();
98
- GLOBAL_CONFIG.lazyload.enable && utils.lazyloadImg();
99
- GLOBAL_CONFIG.lightbox && utils.lightbox(document.querySelectorAll(".bber-content-img img"));
100
- sco.changeTimeFormat(document.querySelectorAll('.info time'));
101
- }, 500)
96
+ GLOBAL_CONFIG.lightbox && utils.lightbox(document.querySelectorAll(".bber-content-img img"));
97
+ sco.changeTimeFormat(document.querySelectorAll('.bber-info-time time'))
102
98
  if theme.busuanzi && (theme.aside.siteinfo.uv || theme.aside.siteinfo.pv)
103
99
  script(async src=url_for(theme.cdn.busuanzi_js))
104
100
 
@@ -23,12 +23,11 @@ if theme.katex && theme.katex.enable
23
23
  include ../head/opengraph.pug
24
24
 
25
25
  // pwa
26
- if theme.pwa.enable
27
- include ../head/pwa.pug
26
+ include ../head/pwa.pug
28
27
 
29
28
  script.
30
29
  console.log(
31
- "%c Program: Hexo %c Theme: Solitude %c Version: v1.8.5",
30
+ "%c Program: Hexo %c Theme: Solitude %c Version: v1.8.6",
32
31
  "border-radius:5px 0 0 5px;padding: 5px 10px;color:white;background:#ff3842;",
33
32
  "padding: 5px 10px;color:white;background:#3e9f50;",
34
33
  "border-radius:0 5px 5px 0;padding: 5px 10px;background:#0084ff;color:white;"
@@ -5,11 +5,11 @@
5
5
  if tj
6
6
  .about-statistic.author-content-item(style=`background: url(${tj.img});`)
7
7
  .card-content
8
- .author-content-item-tips 数据
9
- span.author-content-item-title 访问统计
8
+ .author-content-item-tips=_p('about.other.tj.tip')
9
+ span.author-content-item-title=_p('about.other.tj.title')
10
10
  #statistic
11
11
  .post-tips
12
- | 统计信息来自
12
+ = _p('about.other.tj.post_tip')
13
13
  a(href="https://v6.51.la/") 51la网站统计
14
14
 
15
15
  script.
@@ -31,7 +31,6 @@
31
31
  s.innerHTML = html;
32
32
  });
33
33
 
34
-
35
34
  if oneself
36
35
  style.
37
36
  :root {
@@ -40,16 +39,16 @@
40
39
  }
41
40
  .author-content-item-group.column.mapAndInfo
42
41
  .author-content-item.map.single
43
- span.map-title 我现在住在 #{oneself.location}
42
+ span.map-title=_p('about.other.oneself.map_title') + oneself.location
44
43
  .author-content-item.selfInfo.single
45
44
  div
46
- span.selfInfo-title 生于
45
+ span.selfInfo-title=_p('about.other.oneself.info_title1')
47
46
  span.selfInfo-content(style="color: #43a6c6;")= oneself.birthYear
48
47
  div
49
48
  span.selfInfo-title= oneself.university
50
49
  span.selfInfo-content(style="color: #c69043;")= oneself.major
51
50
  div
52
- span.selfInfo-title 现在职业
51
+ span.selfInfo-title=_p('about.other.oneself.info_title2')
53
52
  span.selfInfo-content(style="color: #b04fe6;")= oneself.occupation
54
53
 
55
54
  - var cause = site.data.about.cause
@@ -9,9 +9,9 @@ if personalities
9
9
  .image
10
10
  img.nolazyload(src=personalities.image)
11
11
  .post-tips
12
- |
12
+ = _p('about.personalities.tip1')
13
13
  a(href="https://www.16personalities.com/")= personalities.linkText
14
- | 了解更多关于
14
+ = _p('about.personalities.tip2')
15
15
  a(href=personalities.typeLink)= personalities.typeName
16
16
  .author-content-item.myphoto
17
- img.author-content-img(src=personalities.myphoto, alt="自拍")
17
+ img.author-content-img(src=personalities.myphoto, alt="my photo")
@@ -1,9 +1,11 @@
1
+ - const google_adsense = theme.google_adsense.enable
2
+
1
3
  script.
2
4
  const pjax = new Pjax({
3
5
  elements: 'a:not([target="_blank"])',
4
6
  selectors: ['title','#body-wrap','#site-config','meta[name="description"]','.js-pjax','meta[property^="og:"]','#config-diff'],
5
7
  cacheBust: false,
6
- analytics: false,
8
+ analytics: !{google_adsense},
7
9
  scrollRestoration: false
8
10
  })
9
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "1.8.5",
3
+ "version": "1.8.6",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by the efu.",
5
5
  "main": "package.json",
6
6
  "scripts": {
@@ -89,8 +89,10 @@ function initThemeColor() {
89
89
  }
90
90
 
91
91
  function changeThemeColor(color) {
92
- const meta = document.querySelector('meta[name="theme-color"]');
93
- if (meta) {
94
- meta.setAttribute('content', color);
92
+ if (null !== document.querySelector('meta[name="theme-color"]') && (document.querySelector('meta[name="theme-color"]').setAttribute("content", color),
93
+ document.querySelector('meta[name="apple-mobile-web-app-status-bar-style"]').setAttribute("content", color)),
94
+ window.matchMedia("(display-mode: standalone)").matches) {
95
+ const t = document.body;
96
+ t ? t.style.backgroundColor = color : console.error("document.body不存在")
95
97
  }
96
98
  }
@@ -154,8 +154,10 @@ function initThemeColor() {
154
154
  }
155
155
 
156
156
  function changeThemeColor(color) {
157
- const meta = document.querySelector('meta[name="theme-color"]');
158
- if (meta) {
159
- meta.setAttribute('content', color);
157
+ if (null !== document.querySelector('meta[name="theme-color"]') && (document.querySelector('meta[name="theme-color"]').setAttribute("content", color),
158
+ document.querySelector('meta[name="apple-mobile-web-app-status-bar-style"]').setAttribute("content", color)),
159
+ window.matchMedia("(display-mode: standalone)").matches) {
160
+ const t = document.body;
161
+ t ? t.style.backgroundColor = color : console.error("document.body not found.")
160
162
  }
161
163
  }
package/source/js/main.js CHANGED
@@ -41,6 +41,7 @@ const scrollFn = function () {
41
41
  let initTop = 0;
42
42
  const $header = document.getElementById('page-header');
43
43
  window.addEventListener('scroll', utils.throttle(function (e) {
44
+ initThemeColor()
44
45
  const currentTop = window.scrollY || document.documentElement.scrollTop;
45
46
  const isDown = scrollDirection(currentTop);
46
47
 
@@ -686,7 +687,7 @@ let sco = {
686
687
  }
687
688
  }
688
689
  utils.addEventListenerPjax(switchBtn, 'click', handleSwitchBtn)
689
- }
690
+ },
690
691
  }
691
692
 
692
693
  const addHighlight = () => {
@@ -883,7 +884,7 @@ window.refreshFn = () => {
883
884
  PAGE_CONFIG.toc && toc.init();
884
885
  (PAGE_CONFIG.is_post || PAGE_CONFIG.is_page) && ((addHighlight()) || tabs.init())
885
886
  PAGE_CONFIG.is_home && showTodayCard()
886
- GLOBAL_CONFIG.covercolor.enable && setTimeout(coverColor, 0)
887
+ GLOBAL_CONFIG.covercolor.enable && coverColor()
887
888
  PAGE_CONFIG.page === "music" && scoMusic.init()
888
889
  GLOBAL_CONFIG.post_ai && PAGE_CONFIG.is_post && efu_ai.init()
889
890
  sco.switchComments()