Skip to content

Commit 8b7269a

Browse files
committed
Add PWA manifest.json
1 parent 3100ef0 commit 8b7269a

File tree

13 files changed

+105
-14
lines changed

13 files changed

+105
-14
lines changed

404.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
categories: 404-page
44
title: 立泉落落
55
description: 昆虫,野生散养攻城狮,“十分”“业余”摄影Fans。
6-
cover: https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/me.jpg
76
sitemap: false
87
blockFromSearchEngine: true
98
preloadImageWebp: https://apqx-host.oss-cn-hangzhou.aliyuncs.com/blog/emojis/noto-animated-emoji/peacock/512.webp

_includes/head.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{% if page.cover != null -%}
2222
<meta data-pagefind-default-meta="image[content]" property="og:image" content="{{ page.cover }}"/>
2323
{% else -%}
24-
<meta data-pagefind-default-meta="image[content]" property="og:image" content="https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/me.jpg"/>
24+
<meta data-pagefind-default-meta="image[content]" property="og:image" content="https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/old_man.jpg"/>
2525
{% endif -%}
2626
{% if page.blockFromSearchEngine == true -%}
2727
<!-- Let search engine not index this page -->
@@ -30,8 +30,12 @@
3030
<!-- Let browser know website is optimized for mobile -->
3131
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
3232
<!-- Site icon -->
33-
<link rel="shortcut icon" href="https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/snail.png"/>
34-
<link rel="apple-touch-icon" href="https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/snail_white_bg.png"/>
33+
<!-- PWA, Chrome 添加到桌面图标 -->
34+
<link rel="manifest" href="/manifest.json" />
35+
<!-- Chrome Safari Tab 图标 -->
36+
<link rel="shortcut icon" href="https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/old_man_rounded.png"/>
37+
<!-- Safari 添加到桌面图标 -->
38+
<link rel="apple-touch-icon" href="https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/old_man_white_bg.jpg"/>
3539
{% comment %} js和css由内部webpack工程输出,debug模式下使用localhost版本,release模式下使用托管在阿里云上的版本 {% endcomment -%}
3640
<script async type="text/javascript" src="{{ resUrlPrefix }}blog-runtime-v{{ version }}.js"></script>
3741
<script async type="text/javascript" src="{{ resUrlPrefix }}blog-scaffold-v{{ version }}.js"></script>

index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
topbar-title: ʕ•ᴥ•ʔ
66
description: 旅居杭州的九五后昆虫,野生散养攻城狮,“十分”“业余”摄影Fans。
77
share-description: 昆虫,野生散养攻城狮,“十分”“业余”摄影Fans。
8-
cover: https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/me.jpg
98
preloadImageJpg: https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/index_original_thumb.jpg
109
---
1110

manifest.json

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"short_name": "立泉落落",
3+
"name": "立泉落落",
4+
"icons": [
5+
{
6+
"purpose": "maskable",
7+
"sizes": "48x48",
8+
"src": "https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/icon/maskable_icon_x48.png",
9+
"type": "image/png"
10+
},
11+
{
12+
"purpose": "maskable",
13+
"sizes": "72x72",
14+
"src": "https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/icon/maskable_icon_x72.png",
15+
"type": "image/png"
16+
},
17+
{
18+
"purpose": "maskable",
19+
"sizes": "96x96",
20+
"src": "https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/icon/maskable_icon_x96.png",
21+
"type": "image/png"
22+
},
23+
{
24+
"purpose": "maskable",
25+
"sizes": "128x128",
26+
"src": "https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/icon/maskable_icon_x128.png",
27+
"type": "image/png"
28+
},
29+
{
30+
"purpose": "maskable",
31+
"sizes": "192x192",
32+
"src": "https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/icon/maskable_icon_x192.png",
33+
"type": "image/png"
34+
},
35+
{
36+
"purpose": "maskable",
37+
"sizes": "384x384",
38+
"src": "https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/icon/maskable_icon_x384.png",
39+
"type": "image/png"
40+
},
41+
{
42+
"purpose": "maskable",
43+
"sizes": "512x512",
44+
"src": "https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/icon/maskable_icon_x512.png",
45+
"type": "image/png"
46+
},
47+
{
48+
"purpose": "any",
49+
"sizes": "48x48",
50+
"src": "https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/icon/old_man_rounded_white_bg_48.png",
51+
"type": "image/png"
52+
},
53+
{
54+
"purpose": "any",
55+
"sizes": "72x72",
56+
"src": "https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/icon/old_man_rounded_white_bg_72.png",
57+
"type": "image/png"
58+
},
59+
{
60+
"purpose": "any",
61+
"sizes": "96x96",
62+
"src": "https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/icon/old_man_rounded_white_bg_96.png",
63+
"type": "image/png"
64+
},
65+
{
66+
"purpose": "any",
67+
"sizes": "128x128",
68+
"src": "https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/icon/old_man_rounded_white_bg_128.png",
69+
"type": "image/png"
70+
},
71+
{
72+
"purpose": "any",
73+
"sizes": "192x192",
74+
"src": "https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/icon/old_man_rounded_white_bg_192.png",
75+
"type": "image/png"
76+
},
77+
{
78+
"purpose": "any",
79+
"sizes": "384x384",
80+
"src": "https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/icon/old_man_rounded_white_bg_384.png",
81+
"type": "image/png"
82+
},
83+
{
84+
"purpose": "any",
85+
"sizes": "512x512",
86+
"src": "https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/icon/old_man_rounded_white_bg_512.png",
87+
"type": "image/png"
88+
}
89+
90+
],
91+
"start_url": "/",
92+
"display": "standalone",
93+
"background_color": "#ffffff"
94+
}
95+

npm/dist/blog-scaffold-v2.0.0.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

npm/src/component/dialog/BasicDialog.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ export abstract class BasicDialog<T extends BasicDialogProps, V> extends React.C
120120

121121
initScrollListener() {
122122
if (!this.listenScroll) return
123+
123124
let lastScrollTop = -1
124125
let lastFireTime = 0
125126
this.dialogContentE.addEventListener("scroll", () => {
@@ -138,7 +139,7 @@ export abstract class BasicDialog<T extends BasicDialogProps, V> extends React.C
138139
const upScroll = newScrollTop <= lastScrollTop
139140
lastScrollTop = newScrollTop
140141
if (upScroll) return
141-
if (this.dialogContentE.scrollHeight - this.dialogContentE.clientHeight - this.dialogContentE.scrollTop < 300) {
142+
if (this.dialogContentE.scrollHeight - this.dialogContentE.clientHeight - this.dialogContentE.scrollTop < this.dialogContentE.clientHeight / 2) {
142143
if (Date.now() - lastFireTime < 100) return
143144
consoleDebug("BasicDialog scroll near to bottom, should fire load more")
144145
this.scrollNearToBottom()

page/print.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
title: 立泉落落|印刷品
55
topbar-title: 印刷品
66
description: 昆虫,野生散养攻城狮,“十分”“业余”摄影Fans。
7-
cover: https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/me.jpg
87
sitemap: false
98
blockFromSearchEngine: true
109
---

page/share.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
title: 立泉落落|分享
55
topbar-title: Share the moments
66
description: 昆虫,野生散养攻城狮,“十分”“业余”摄影Fans。
7-
cover: https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/me.jpg
87
sitemap: false
98
blockFromSearchEngine: true
109
---

section/opera.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
topbar-title: Lift the camera
66
description: 2021年08月08日,我在博客里开辟这个分区来承载曾经在剧场看过的剧和拍过的剧照,以昆曲为主,使用标签把每一场演出按剧种、剧团、剧目、演员、剧场分类归档。
77
share-description: 结庐在人境,心远地自偏。
8-
cover: https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/me.jpg
98
sitemap: true
109
blockFromSearchEngine: false
1110
---

section/poetry.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
title: 立泉落落|诗文
55
topbar-title: Words we love
66
description: 落花人独立,微雨燕双飞。
7-
cover: https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/me.jpg
87
sitemap: true
98
blockFromSearchEngine: false
109
preloadImageJpg: https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/index_poetry_thumb.jpg

section/repost.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
title: 立泉落落|转载
55
topbar-title: Why so serious
66
description: 静念园林好,人间良可辞。
7-
cover: https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/me.jpg
87
sitemap: true
98
blockFromSearchEngine: false
109
preloadImageJpg: https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/index_repost_thumb.jpg

section/search.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
title: 立泉落落|搜索
55
topbar-title: Hello there
66
description: 昆虫,野生散养攻城狮,“十分”“业余”摄影Fans。
7-
cover: https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/me.jpg
87
sitemap: false
98
blockFromSearchEngine: true
109
---

section/tag.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
title: 立泉落落|标签
55
topbar-title: Surprise to click
66
description: 昆虫,野生散养攻城狮,“十分”“业余”摄影Fans。
7-
cover: https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/site/me.jpg
87
sitemap: false
98
blockFromSearchEngine: true
109
preloadImageWebp: https://apqx-host.oss-cn-hangzhou.aliyuncs.com/blog/emojis/noto-animated-emoji/cooking/512.webp

0 commit comments

Comments
 (0)