diff --git a/layout/archive.ejs b/layout/archive.ejs index e420c33..da62077 100644 --- a/layout/archive.ejs +++ b/layout/archive.ejs @@ -1,14 +1 @@ - -

存档页面

-<% if (is_archive()) { %> - -<% } %> \ No newline at end of file +<%- partial('page') %> \ No newline at end of file diff --git a/layout/common/archive-post.ejs b/layout/common/archive-post.ejs new file mode 100644 index 0000000..b172eb5 --- /dev/null +++ b/layout/common/archive-post.ejs @@ -0,0 +1,11 @@ + + \ No newline at end of file diff --git a/layout/common/article-post.ejs b/layout/common/article-post.ejs index c61723d..b9b7958 100644 --- a/layout/common/article-post.ejs +++ b/layout/common/article-post.ejs @@ -50,6 +50,7 @@ <% } %> +
-
-
- <%- partial('left-side') %> -
-
- <%- partial('right-side') %> -
-
+<%- partial('page') %> \ No newline at end of file diff --git a/layout/page.ejs b/layout/page.ejs new file mode 100644 index 0000000..7026f71 --- /dev/null +++ b/layout/page.ejs @@ -0,0 +1,9 @@ + +
+
+ <%- partial('left-side') %> +
+
+ <%- partial('right-side') %> +
+
diff --git a/layout/right-side.ejs b/layout/right-side.ejs index 319b044..6706238 100644 --- a/layout/right-side.ejs +++ b/layout/right-side.ejs @@ -3,6 +3,12 @@ <%- partial('common/nav') %>
- <%- partial('common/article-post') %> + <% if (is_archive()) { %> + + <%- partial('common/archive-post') %> + <% } else { %> + + <%- partial('common/article-post') %> + <% } %>
\ No newline at end of file