diff --git a/_config.yml b/_config.yml
index d1ae6cd..e7761d5 100644
--- a/_config.yml
+++ b/_config.yml
@@ -91,5 +91,5 @@ search:
## Docs: https://hexo.io/docs/deployment.html
deploy:
type: git
- repo: git@github.com:sookie2010/sookie2010.github.io.git
+ repo: https://github.com/sookie2010/sookie2010.github.io.git
branch: master
diff --git a/source/lab/index.md b/source/lab/index.md
deleted file mode 100644
index dfdd9ca..0000000
--- a/source/lab/index.md
+++ /dev/null
@@ -1,28 +0,0 @@
----
-title: 实验室
-date: 2016-02-01 20:29:57
-pageid: lab
-
-projects:
- blog_demo:
- title: Blog Demo
- time: 2016-10-10
- content:
- 1:
- name: 基于 vue + vuex + bootstrap 的 blog demo
- link: https://github.com/jangdelong/vue-blog-demo
- hexo_theme_xups:
- title: hexo-theme-xups 博客主题
- time: 2016-03-12
- content:
- 1:
- name: 基于 hexo 静态博客系统的 博客主题 xups
- link: https://github.com/jangdelong/hexo-theme-xups
- typecho_theme_xups:
- title: Typecho 博客主题
- time: 2015-10-15
- content:
- 1:
- name: 基于 php 博客系统 typecho 的主题 xups
- link: https://github.com/jangdelong/typecho-theme-xups
----
diff --git a/themes/hexo-theme-xups/_config.yml b/themes/hexo-theme-xups/_config.yml
index a38783c..bfc4cbc 100644
--- a/themes/hexo-theme-xups/_config.yml
+++ b/themes/hexo-theme-xups/_config.yml
@@ -13,17 +13,13 @@ menu:
link: /
icon: icon-home
lab:
- name: 实验室
- link: /lab/
- icon: icon-lab
+ name: 归档
+ link: /archives/
+ icon: icon-drawer
about:
name: 关于
link: /about/
icon: icon-user-tie
- # comment:
- # name: 留言
- # link: /comment/
- # icon: icon-bubbles2
rss:
name: RSS
link: /atom.xml
diff --git a/themes/hexo-theme-xups/layout/_custom/lab.ejs b/themes/hexo-theme-xups/layout/_custom/lab.ejs
deleted file mode 100644
index e2b53ab..0000000
--- a/themes/hexo-theme-xups/layout/_custom/lab.ejs
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-<%
- var projects = page.projects;
- for (var i in projects) {
-%>
-
-
-
- <%- date(projects[i].time, 'YYYY-MM-DD') %> <%- projects[i].title %>
-
-
-
- <% var content = projects[i].content; %>
- <% for (var j in content) { %>
- -
-
- <%- content[j].name %>
-
- <% } %>
-
-<% } %>
diff --git a/themes/hexo-theme-xups/layout/_partial/archive.ejs b/themes/hexo-theme-xups/layout/_partial/archive.ejs
index d1543aa..5156c30 100644
--- a/themes/hexo-theme-xups/layout/_partial/archive.ejs
+++ b/themes/hexo-theme-xups/layout/_partial/archive.ejs
@@ -23,7 +23,7 @@ if(pagination) {
let currentPosts = [];
site.posts.each(function(post) {
- if(post.date.year() == page.year && (post.date.month()+1 == page.month || !page.month)) {
+ if((post.date.year() == page.year || !page.year) && (post.date.month()+1 == page.month || !page.month)) {
currentPosts.push(post)
}
})
@@ -41,9 +41,8 @@ if(pagination) {
%>
-
- <%=post.title %>
-
+ <%=post.title %>
+ ---- <%=date(post.date, 'YYYY-MM-DD HH:mm') %>
<%
diff --git a/themes/hexo-theme-xups/layout/_partial/article.ejs b/themes/hexo-theme-xups/layout/_partial/article.ejs
index 45923a8..ca6fe7d 100644
--- a/themes/hexo-theme-xups/layout/_partial/article.ejs
+++ b/themes/hexo-theme-xups/layout/_partial/article.ejs
@@ -5,7 +5,7 @@
<%- post.author || '柠烟夏季' %> 发表于
- <%- partial('post/date', { date_format: 'YYYY-MM-DD' }) %>
+ <%- partial('post/date', { date_format: 'YYYY-MM-DD HH:mm' }) %>
<%- post.content %>
diff --git a/themes/hexo-theme-xups/layout/_partial/header.ejs b/themes/hexo-theme-xups/layout/_partial/header.ejs
index bc647b5..0c2e8a9 100644
--- a/themes/hexo-theme-xups/layout/_partial/header.ejs
+++ b/themes/hexo-theme-xups/layout/_partial/header.ejs
@@ -1,71 +1,65 @@