From b6c758f2fc2cb502ed194f2700e033564f2521f4 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Tue, 22 Sep 2015 12:06:13 +0800 Subject: Added server option "useCdn", use template statement to route resources' source --- public/index.ejs | 240 ++++++++++++++++++++++++++++++++++++++++++++++++ public/index.html | 223 -------------------------------------------- public/views/foot.ejs | 9 ++ public/views/head.ejs | 8 +- public/views/pretty.ejs | 14 ++- 5 files changed, 268 insertions(+), 226 deletions(-) create mode 100644 public/index.ejs delete mode 100644 public/index.html (limited to 'public') diff --git a/public/index.ejs b/public/index.ejs new file mode 100644 index 00000000..dbc5e268 --- /dev/null +++ b/public/index.ejs @@ -0,0 +1,240 @@ + + + + + + + + + + + + + HackMD - Collaborative notes + + + + + <% if(useCDN) { %> + + + + <% } else { %> + + + + <% } %> + + + + + + + + +
+
+
+ +
+
+

+ +
+
+ +
+
+

HackMD

+

+ Realtime collaborative markdown notes on all platforms. +

+ + +

+ Start new note +

+ See all features here +
Share note via the links directly! +
+
+
+ + + + +
+
+
+ +
+

© 2015 HackMD by jackycute +

+
+
+
+
+
+ + + + + + + + + <% if(useCDN) { %> + + + + + + + + + <% } else { %> + + + + + + + + + <% } %> + + + + + + + + + + \ No newline at end of file diff --git a/public/index.html b/public/index.html deleted file mode 100644 index 829c0446..00000000 --- a/public/index.html +++ /dev/null @@ -1,223 +0,0 @@ - - - - - - - - - - - - - HackMD - Collaborative notes - - - - - - - - - - - - - - - -
-
-
- -
-
-

- -
-
- -
-
-

HackMD

-

- Realtime collaborative markdown notes on all platforms. -

- - -

- Start new note -

- See all features here -
Share note via the links directly! -
-
-
- - - - -
-
-
- -
-

© 2015 HackMD by jackycute -

-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/public/views/foot.ejs b/public/views/foot.ejs index b545841f..0f568643 100644 --- a/public/views/foot.ejs +++ b/public/views/foot.ejs @@ -1,9 +1,18 @@ +<% if(useCDN) { %> + + + + + + +<% } else { %> +<% } %> diff --git a/public/views/head.ejs b/public/views/head.ejs index 0518ebc7..816c2a26 100644 --- a/public/views/head.ejs +++ b/public/views/head.ejs @@ -7,8 +7,15 @@ <%- title %> +<% if(useCDN) { %> + + + +<% } else { %> + +<% } %> @@ -20,7 +27,6 @@ - diff --git a/public/views/pretty.ejs b/public/views/pretty.ejs index cc4f80d2..0004bb7c 100644 --- a/public/views/pretty.ejs +++ b/public/views/pretty.ejs @@ -10,9 +10,14 @@ <%- title %> - - + + <% if(useCDN) { %> + + + <% } else { %> + + <% } %> @@ -45,8 +50,13 @@ +<% if(useCDN) { %> + + +<% } else { %> +<% } %> -- cgit v1.2.3