diff --git a/man/cookbook/apis/site-config/readme.md b/man/cookbook/apis/site-config/readme.md
index 61c6984..6f62fa2 100644
--- a/man/cookbook/apis/site-config/readme.md
+++ b/man/cookbook/apis/site-config/readme.md
@@ -67,7 +67,7 @@ interface CopyrightPeriod {
| 属性名 | 值类型/可选值 | 默认值 | 说明 |
| --- | --- | --- | --- |
| `links` | `Link[]` | - | 页面底部链接 |
-| `partial` | `string` | `'ksio/footer.html'` | 预置布局模板中页脚部分,可指定自定义的替换主题预置的 |
+| `partial` | `string` | `'ksio/partials/footer.html'` | 预置布局模板中页脚部分,可指定自定义的替换主题预置的 |
## `header`
@@ -77,7 +77,7 @@ interface CopyrightPeriod {
| --- | --- | --- | --- |
| `navbar` | `HeaderNavBar` | - | 页头导航栏,[详见下方](#navbar) |
| `navs` | `Link[]` | - | 页面头部导航 |
-| `partial` | `string` | `'ksio/header.html'` | 预置布局模板中页头部分,可指定自定义的替换主题预置的 |
+| `partial` | `string` | `'ksio/partials/header.html'` | 预置布局模板中页头部分,可指定自定义的替换主题预置的 |
### `navbar`
diff --git a/src/hexo/source/posts.md b/src/hexo/source/posts.md
index 8157dd2..63d5429 100644
--- a/src/hexo/source/posts.md
+++ b/src/hexo/source/posts.md
@@ -1,6 +1,5 @@
---
title: 博客
-ksio_seo_role: writer
ksio_slot_banner: _ksio/pages/posts/banner
ksio_slot_content: _ksio/pages/posts/content
ksio_slot_footer: _ksio/pages/posts/footer
diff --git a/src/jekyll/_assets/stylesheets/local/pages/doc.scss b/src/jekyll/_assets/stylesheets/local/pages/doc.scss
new file mode 100644
index 0000000..4049107
--- /dev/null
+++ b/src/jekyll/_assets/stylesheets/local/pages/doc.scss
@@ -0,0 +1 @@
+@import "../../ksio/pages/doc";
diff --git a/src/jekyll/_assets/stylesheets/local/pages/post.scss b/src/jekyll/_assets/stylesheets/local/pages/post.scss
new file mode 100644
index 0000000..2507d13
--- /dev/null
+++ b/src/jekyll/_assets/stylesheets/local/pages/post.scss
@@ -0,0 +1 @@
+@import "../../ksio/pages/post";
diff --git a/src/jekyll/_assets/stylesheets/local/pages/posts.scss b/src/jekyll/_assets/stylesheets/local/pages/posts.scss
new file mode 100644
index 0000000..c6a62e5
--- /dev/null
+++ b/src/jekyll/_assets/stylesheets/local/pages/posts.scss
@@ -0,0 +1 @@
+@import "../../ksio/pages/posts";
diff --git a/src/jekyll/_config.yml b/src/jekyll/_config.yml
index d8eff34..0242a92 100644
--- a/src/jekyll/_config.yml
+++ b/src/jekyll/_config.yml
@@ -71,8 +71,8 @@ defaults:
values:
layout: ksio/doc
css:
- - ksio/pages/post
- - ksio/pages/doc
+ - local/pages/post
+ - local/pages/doc
js:
- ksio/initializers/time
- ksio/initializers/lazyload
@@ -90,7 +90,7 @@ defaults:
values:
layout: ksio/post
css:
- - ksio/pages/post
+ - local/pages/post
js:
- ksio/initializers/time
- ksio/initializers/lazyload
diff --git a/src/jekyll/_includes/ksio/pages/404.html b/src/jekyll/_includes/ksio/pages/404.html
new file mode 100644
index 0000000..24edfe1
--- /dev/null
+++ b/src/jekyll/_includes/ksio/pages/404.html
@@ -0,0 +1 @@
+
+ {% assign prev_post = null %}
+ {% assign first_post_year = posts.last.date | date: "%Y" %}
+ {% assign last_post_year = first_post.date | date: "%Y" %}
+
+ {% assign current_year = site.time | date: "%Y" %}
+ {% assign year_duration = 10 %}
+
+
+
{{ last_post_year | minus: first_post_year | plus: 1 }} 年间共写了 {{ posts.size }} 篇文章。本页只显示最近十年({{ current_year | minus: year_duration | plus: 1 }} 年~{{ current_year }} 年)的文章,其他年份的文章请访问下面的年份归档页面:
+
+ {% for post in posts %}
+ {% assign prev_year = prev_post.date | date: "%Y" %}
+ {% assign year = post.date | date: "%Y" %}
+ {% assign diff = current_year | minus: year %}
+
+ {% if prev_post == null or year != prev_year %}
+ {% assign first_item = true %}
+ {% else %}
+ {% assign first_item = false %}
+ {% endif %}
+
+ {% if diff >= year_duration %}
+ {% if first_item == true %}
+ {% assign year_posts = 0 %}
+
+ {% for p in site.posts %}
+ {% assign y = p.date | date: "%Y" %}
+
+ {% if y == year %}
+ {% assign year_posts = year_posts | plus: 1 %}
+ {% endif %}
+ {% endfor %}
+
+ - {{ year }}共 {{ year_posts }} 篇
+ {% else %}
+ {% continue %}
+ {% endif %}
+ {% endif %}
+
+ {% assign prev_post = post %}
+ {% endfor %}
+
+
+
+ {% for post in posts %}
+ {% assign prev_year = prev_post.date | date: "%Y" %}
+ {% assign year = post.date | date: "%Y" %}
+ {% assign diff = current_year | minus: year %}
+
+ {% if prev_post == null or year != prev_year %}
+ {% assign first_item = true %}
+ {% else %}
+ {% assign first_item = false %}
+ {% endif %}
+
+ {% if diff < year_duration %}
+ {% if first_item == true %}
+
{{ year }}
+ {% endif %}
+
+
{{ post.title }}{% if post.album %}
{% endif %}{% if post.tags contains 'vlog' %}
{% endif %}
+ {% endif %}
+
+ {% assign prev_post = post %}
+ {% endfor %}
+
+{% else %}
+