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/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 +++++++++++++++++++++++++++++ 5 files changed, 475 insertions(+) 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 (limited to 'public/views/hackmd') diff --git a/public/views/hackmd/body.ejs b/public/views/hackmd/body.ejs new file mode 100644 index 00000000..d8a3f108 --- /dev/null +++ b/public/views/hackmd/body.ejs @@ -0,0 +1,250 @@ + + + + + + + + + + + + + + + + + +<%- include ../shared/refresh-modal %> +<%- include ../shared/signin-modal %> +<%- include ../shared/help-modal %> +<%- include ../shared/revision-modal %> diff --git a/public/views/hackmd/foot.ejs b/public/views/hackmd/foot.ejs new file mode 100644 index 00000000..178b5504 --- /dev/null +++ b/public/views/hackmd/foot.ejs @@ -0,0 +1,28 @@ + +<% if(useCDN) { %> + + + + + + + + + + + + + + + + + + +<%- include ../build/index-scripts %> +<% } else { %> + + +<%- include ../build/index-pack-scripts %> +<% } %> diff --git a/public/views/hackmd/footer.ejs b/public/views/hackmd/footer.ejs new file mode 100644 index 00000000..e69de29b diff --git a/public/views/hackmd/head.ejs b/public/views/hackmd/head.ejs new file mode 100644 index 00000000..d0663993 --- /dev/null +++ b/public/views/hackmd/head.ejs @@ -0,0 +1,22 @@ + + + + + + +<%= title %> + + +<% if(useCDN) { %> + + + + + + +<%- include ../build/index-header %> +<% } else { %> + +<%- include ../build/index-pack-header %> +<% } %> +<%- include ../shared/polyfill %> \ No newline at end of file diff --git a/public/views/hackmd/header.ejs b/public/views/hackmd/header.ejs new file mode 100644 index 00000000..bb4e3174 --- /dev/null +++ b/public/views/hackmd/header.ejs @@ -0,0 +1,175 @@ + +
-- cgit v1.2.3 From d5008b7aeb339f98751d9e0c78946e306c010b3f Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Thu, 2 Feb 2017 23:37:20 +0800 Subject: Update viz.js and mermaid CDN links --- public/views/hackmd/foot.ejs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'public/views/hackmd') diff --git a/public/views/hackmd/foot.ejs b/public/views/hackmd/foot.ejs index 178b5504..5d469374 100644 --- a/public/views/hackmd/foot.ejs +++ b/public/views/hackmd/foot.ejs @@ -11,14 +11,14 @@ - + - + <%- include ../build/index-scripts %> <% } else { %> -- cgit v1.2.3 From 6c87262bd9d80f2fe409241d2e2084bc99b44b5b Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Thu, 2 Feb 2017 23:40:55 +0800 Subject: Fix to use minified CDN file source in mermaid --- public/views/hackmd/foot.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public/views/hackmd') diff --git a/public/views/hackmd/foot.ejs b/public/views/hackmd/foot.ejs index 5d469374..445b0213 100644 --- a/public/views/hackmd/foot.ejs +++ b/public/views/hackmd/foot.ejs @@ -11,7 +11,7 @@ - + -- cgit v1.2.3