From 82614a5c9add66d284a7319cc50f6fc8b3ea618c Mon Sep 17 00:00:00 2001
From: jaywcjlove <398188662@qq.com>
Date: Sat, 23 Oct 2021 18:12:17 +0800
Subject: [PATCH] website: update website template.
---
template/details.ejs | 10 +++----
template/hot.ejs | 10 +++----
template/index.ejs | 10 ++++---
template/list.ejs | 8 ++---
template/partial/footer.ejs | 6 ++++
template/{ => partial}/header.ejs | 0
template/styl/index.styl | 30 ++++++++++++++-----
template/{ => widget}/footer.ejs | 12 ++------
template/{ => widget}/search.ejs | 50 +++++++++++++++----------------
9 files changed, 74 insertions(+), 62 deletions(-)
create mode 100644 template/partial/footer.ejs
rename template/{ => partial}/header.ejs (100%)
rename template/{ => widget}/footer.ejs (61%)
rename template/{ => widget}/search.ejs (89%)
diff --git a/template/details.ejs b/template/details.ejs
index da2fa3af2f..8e3604993d 100644
--- a/template/details.ejs
+++ b/template/details.ejs
@@ -1,7 +1,5 @@
-
-<%-include('header'); %>
-<%- include('search',{type: "list"}); %>
-
+<%- include('partial/header'); %>
+<%- include('widget/search',{type: "list"}); %>
<% if(md_path){ %>
@@ -12,5 +10,5 @@
<% } %>
{{content}}
-
-<%- include('footer',{type: "list"}); %>
\ No newline at end of file
+<%- include('widget/footer',{type: "list"}); %>
+<%- include('partial/footer'); %>
\ No newline at end of file
diff --git a/template/hot.ejs b/template/hot.ejs
index bb2f0e68b3..73d79b5c36 100644
--- a/template/hot.ejs
+++ b/template/hot.ejs
@@ -1,7 +1,5 @@
-
-<%- include('header',{src:""}); %>
-<%- include('search',{type: "list"}); %>
-
+<%- include('partial/header'); %>
+<%- include('widget/search',{type: "list"}); %>
<%describe.arr.forEach(function(page,item){%>
@@ -9,5 +7,5 @@
<%});%>
-
-<%- include('footer',{type: 'list'}); %>
\ No newline at end of file
+<%- include('widget/footer',{type: "list"}); %>
+<%- include('partial/footer'); %>
diff --git a/template/index.ejs b/template/index.ejs
index 184166019b..fa15264bb6 100644
--- a/template/index.ejs
+++ b/template/index.ejs
@@ -1,4 +1,6 @@
-
-<%- include('header'); %>
-<%- include('search',{type: "index"}); %>
-<%- include('footer',{type: "index"}); %>
\ No newline at end of file
+<%- include('partial/header'); %>
+
+<%- include('widget/search',{type: "home"}); %>
+<%- include('widget/footer',{type: "home"}); %>
+
+<%- include('partial/footer'); %>
\ No newline at end of file
diff --git a/template/list.ejs b/template/list.ejs
index 3b702af5a3..b064b21935 100644
--- a/template/list.ejs
+++ b/template/list.ejs
@@ -1,6 +1,5 @@
-
-<%- include('header',{src:""}); %>
-<%- include('search',{type: "list"}); %>
+<%- include('partial/header'); %>
+<%- include('widget/search',{type: "list"}); %>
-<%- include('footer',{type: 'list'}); %>
\ No newline at end of file
+<%- include('widget/footer',{type: "list"}); %>
+<%- include('partial/footer'); %>
\ No newline at end of file
diff --git a/template/partial/footer.ejs b/template/partial/footer.ejs
new file mode 100644
index 0000000000..8297e0a5f0
--- /dev/null
+++ b/template/partial/footer.ejs
@@ -0,0 +1,6 @@
+
+
+
+