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 @@
+
+
+
+