From f5a39b8ab21cd823b7decab0156930332c729497 Mon Sep 17 00:00:00 2001 From: Nexmoe <16796652+nexmoe@users.noreply.github.com> Date: Sat, 18 Mar 2023 18:03:44 +0800 Subject: [PATCH] chore: tidy up --- README_ZH.md | 0 layout/_index/list.ejs | 23 + layout/_layout/single/content.ejs | 3 + .../{_partial => _layout/single}/header.ejs | 7 +- layout/_partial/{ => _post}/copyright.ejs | 0 layout/_partial/after-footer.ejs | 12 - layout/_partial/head.ejs | 55 + layout/_partial/paginator.ejs | 2 +- layout/_partial/sidebar.ejs | 6 - layout/index.ejs | 24 +- layout/layout.ejs | 58 +- layout/plain.ejs | 24 - layout/post.ejs | 3 +- package.json | 4 +- pnpm-lock.yaml | 2591 +++++++++++++++++ source/_config.yml | 2 +- source/css/style.styl | 3 +- 17 files changed, 2695 insertions(+), 122 deletions(-) delete mode 100644 README_ZH.md create mode 100644 layout/_index/list.ejs create mode 100644 layout/_layout/single/content.ejs rename layout/{_partial => _layout/single}/header.ejs (87%) rename layout/_partial/{ => _post}/copyright.ejs (100%) delete mode 100644 layout/_partial/after-footer.ejs create mode 100644 layout/_partial/head.ejs delete mode 100644 layout/_partial/sidebar.ejs delete mode 100644 layout/plain.ejs create mode 100644 pnpm-lock.yaml diff --git a/README_ZH.md b/README_ZH.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/layout/_index/list.ejs b/layout/_index/list.ejs new file mode 100644 index 000000000..0b28118e1 --- /dev/null +++ b/layout/_index/list.ejs @@ -0,0 +1,23 @@ +<% page.posts.each(function (page) { %> +
+ + <% if (page.cover){ %> +
+ <%= page.title %> +

<%= page.title %>

+
+ <%} else{ %> +
+ <%= page.title %> +

<%= page.title %>

+
+ <% } %> +
+ + <%- partial('_partial/_post/meta', {page: page}) %> + +
+ <%- page.excerpt %> +
+
+<% }) %> \ No newline at end of file diff --git a/layout/_layout/single/content.ejs b/layout/_layout/single/content.ejs new file mode 100644 index 000000000..075dd0ce7 --- /dev/null +++ b/layout/_layout/single/content.ejs @@ -0,0 +1,3 @@ +
+ <%- body %> +
\ No newline at end of file diff --git a/layout/_partial/header.ejs b/layout/_layout/single/header.ejs similarity index 87% rename from layout/_partial/header.ejs rename to layout/_layout/single/header.ejs index e2dc79077..1c2291593 100644 --- a/layout/_partial/header.ejs +++ b/layout/_layout/single/header.ejs @@ -19,7 +19,12 @@ <% } %> - <%- partial('_partial/sidebar') %> +