From 09a7bcbdef237c1443bbbfc29010e7106cffd739 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Sat, 21 Jan 2017 13:08:29 +0800 Subject: Refactor templates and rearrange its path --- public/views/body.ejs | 250 --------------------------------- public/views/disqus.ejs | 14 -- public/views/error.ejs | 6 +- public/views/foot.ejs | 28 ---- public/views/footer.ejs | 0 public/views/ga.ejs | 18 --- public/views/hackmd.ejs | 12 +- public/views/hackmd/body.ejs | 250 +++++++++++++++++++++++++++++++++ public/views/hackmd/foot.ejs | 28 ++++ public/views/hackmd/footer.ejs | 0 public/views/hackmd/head.ejs | 22 +++ public/views/hackmd/header.ejs | 175 +++++++++++++++++++++++ public/views/head.ejs | 22 --- public/views/header.ejs | 175 ----------------------- public/views/help-modal.ejs | 147 ------------------- public/views/index.ejs | 216 +--------------------------- public/views/index/body.ejs | 175 +++++++++++++++++++++++ public/views/index/foot.ejs | 13 ++ public/views/index/footer.ejs | 0 public/views/index/head.ejs | 22 +++ public/views/index/header.ejs | 0 public/views/polyfill.ejs | 7 - public/views/pretty.ejs | 14 +- public/views/refresh-modal.ejs | 31 ---- public/views/revision-modal.ejs | 27 ---- public/views/shared/disqus.ejs | 14 ++ public/views/shared/ga.ejs | 18 +++ public/views/shared/help-modal.ejs | 147 +++++++++++++++++++ public/views/shared/polyfill.ejs | 7 + public/views/shared/refresh-modal.ejs | 31 ++++ public/views/shared/revision-modal.ejs | 27 ++++ public/views/shared/signin-modal.ejs | 95 +++++++++++++ public/views/signin-modal.ejs | 95 ------------- public/views/slide.ejs | 14 +- 34 files changed, 1052 insertions(+), 1048 deletions(-) delete mode 100644 public/views/body.ejs delete mode 100644 public/views/disqus.ejs delete mode 100644 public/views/foot.ejs delete mode 100644 public/views/footer.ejs delete mode 100644 public/views/ga.ejs create mode 100644 public/views/hackmd/body.ejs create mode 100644 public/views/hackmd/foot.ejs create mode 100644 public/views/hackmd/footer.ejs create mode 100644 public/views/hackmd/head.ejs create mode 100644 public/views/hackmd/header.ejs delete mode 100644 public/views/head.ejs delete mode 100644 public/views/header.ejs delete mode 100644 public/views/help-modal.ejs create mode 100644 public/views/index/body.ejs create mode 100644 public/views/index/foot.ejs create mode 100644 public/views/index/footer.ejs create mode 100644 public/views/index/head.ejs create mode 100644 public/views/index/header.ejs delete mode 100644 public/views/polyfill.ejs delete mode 100644 public/views/refresh-modal.ejs delete mode 100644 public/views/revision-modal.ejs create mode 100644 public/views/shared/disqus.ejs create mode 100644 public/views/shared/ga.ejs create mode 100644 public/views/shared/help-modal.ejs create mode 100644 public/views/shared/polyfill.ejs create mode 100644 public/views/shared/refresh-modal.ejs create mode 100644 public/views/shared/revision-modal.ejs create mode 100644 public/views/shared/signin-modal.ejs delete mode 100644 public/views/signin-modal.ejs (limited to 'public/views') diff --git a/public/views/body.ejs b/public/views/body.ejs deleted file mode 100644 index 5ad1733e..00000000 --- a/public/views/body.ejs +++ /dev/null @@ -1,250 +0,0 @@ -
- - - - - - - - - - - - - - - - -<%- include refresh-modal %> -<%- include signin-modal %> -<%- include help-modal %> -<%- include revision-modal %> diff --git a/public/views/disqus.ejs b/public/views/disqus.ejs deleted file mode 100644 index cceaa85c..00000000 --- a/public/views/disqus.ejs +++ /dev/null @@ -1,14 +0,0 @@ - - - - \ No newline at end of file diff --git a/public/views/error.ejs b/public/views/error.ejs index 402b5eb0..a40ed39c 100644 --- a/public/views/error.ejs +++ b/public/views/error.ejs @@ -2,18 +2,18 @@ - <%- include head %> + <%- include hackmd/head %> - <%- include header %> + <%- include hackmd/header %>