diff --git a/deploy.sh b/deploy.sh
index 8b80a63..bb05f94 100644
--- a/deploy.sh
+++ b/deploy.sh
@@ -31,8 +31,8 @@ if [ -z "$CODING_TOKEN" ]; then # -z 字符串 长度为0则为true;$CODING_T
# codingUrl=git@git.dev.tencent.com:xugaoyi/xugaoyi.git
codingUrl=git@e.coding.net:xgy/xgy.git
else
- # codingUrl=https://xugaoyi:${CODING_TOKEN}@git.dev.tencent.com/xugaoyi/xugaoyi.git
- condingUrl=https://xgy:${CODING_TOKEN}@e.coding.net/xgy/xgy.git
+ # codingUrl=https://xugaoyi:${CODING_TOKEN}@git.dev.tencent.com/xugaoyi/xugaoyi.git
+ condingUrl=https://HmuzsGrGQX:${CODING_TOKEN}@e.coding.net/xgy/xgy.git
fi
git add -A
git commit -m "${msg}"
diff --git a/docs/.vuepress/theme/components/Article.vue b/docs/.vuepress/theme/components/Article.vue
index cc2429b..907a624 100644
--- a/docs/.vuepress/theme/components/Article.vue
+++ b/docs/.vuepress/theme/components/Article.vue
@@ -3,12 +3,12 @@
- 最新文章
+ 最近更新
-
最新文章
+
最近更新
-
+
- {{'0' + (index + 1)}}
-
{{item.title}}
@@ -28,6 +28,8 @@
@@ -119,6 +122,8 @@ export default {
margin-left 30px
font-weight bold
line-height: 55px;
+ @media (max-width: $MQNarrow)
+ width 45px
dt
flex 1
display flex
@@ -145,4 +150,6 @@ export default {
text-align right
font-size .9rem
line-height: 55px;
+ @media (max-width: $MQNarrow)
+ width 95px
diff --git a/docs/.vuepress/theme/util/getTopKPosts.js b/docs/.vuepress/theme/util/getTopKPosts.js
new file mode 100644
index 0000000..1b7b140
--- /dev/null
+++ b/docs/.vuepress/theme/util/getTopKPosts.js
@@ -0,0 +1,30 @@
+const re = /.*\/(.*?)\.(html|md)/
+
+export function getTopKPosts(posts, len) {
+ return posts
+ .filter(post => {
+ const { frontmatter } = post;
+ return frontmatter && frontmatter.permalink && frontmatter.title && frontmatter.article !== false;
+ })
+ .map(post => {
+ const execs = re.exec(post.relativePath)
+ return {
+ ...post,
+ updateTimestamp: (new Date(post.lastUpdated || post.frontmatter.date)).getTime(),
+ filename: execs ? execs['1'] : '',
+ formatDay: formatDate(new Date(post.lastUpdated || post.frontmatter.date))
+ }
+ })
+ .sort((a, b) => b.updateTimestamp - a.updateTimestamp)
+ .slice(0,len)
+}
+
+function formatDate(date) { // 日期格式化
+ if (!(date instanceof Date)) {
+ return
+ }
+ return `${date.getFullYear()}/${zero(date.getMonth() + 1)}/${zero(date.getDate())}`
+}
+function zero(d) { // 补0
+ return d.toString().padStart(2,'0')
+}
\ No newline at end of file
diff --git a/docs/04.其他/97.学习网站.md b/docs/04.其他/97.学习网站.md
index 2fa94d6..7f47ef8 100644
--- a/docs/04.其他/97.学习网站.md
+++ b/docs/04.其他/97.学习网站.md
@@ -2,6 +2,7 @@
title: 学习网站
date: 2019-12-25
permalink: /pages/2e9ba3fa6e1ed0e9
+article: false
---
# 学习网站
diff --git a/docs/04.其他/98.在线工具.md b/docs/04.其他/98.在线工具.md
index 052a3ff..e2e7432 100644
--- a/docs/04.其他/98.在线工具.md
+++ b/docs/04.其他/98.在线工具.md
@@ -2,6 +2,7 @@
title: 在线工具
date: 2020-01-12
permalink: /pages/9c2232288caaa8ec
+article: false
---
# 在线工具
diff --git a/docs/04.其他/99.友情链接.md b/docs/04.其他/99.友情链接.md
index eead263..5671dd2 100644
--- a/docs/04.其他/99.友情链接.md
+++ b/docs/04.其他/99.友情链接.md
@@ -2,6 +2,7 @@
title: 友情链接
date: 2019-12-25
permalink: /pages/844eea1b2387fb96
+article: false
---
# 小伙伴们 o(^∇^*)
diff --git a/docs/05.关于/01.关于.md b/docs/05.关于/01.关于.md
index 02f7ec9..b901796 100644
--- a/docs/05.关于/01.关于.md
+++ b/docs/05.关于/01.关于.md
@@ -12,9 +12,7 @@ article: false
博主,从事Web前端开发工作,喜欢唱、跳、rap、篮球,写程序。 本人↓↓↓
-
-
-
+
[更新日志](https://github.com/xugaoyi/blog/commits/master)
diff --git a/docs/06.最新/01.最新.md b/docs/06.最新/01.最新.md
index 901ce4d..c96b2ac 100644
--- a/docs/06.最新/01.最新.md
+++ b/docs/06.最新/01.最新.md
@@ -3,10 +3,10 @@ title: 最新
date: 2019-12-31
permalink: /pages/8818d4830dac5e2a
sidebar: false
-article: false
+article: false # 不显示最近更新栏,以及不参与到最近更新文章数据计算
---
-# 最新文章
+# 最近更新