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/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 5 files changed, 210 insertions(+) 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 (limited to 'public/views/index') diff --git a/public/views/index/body.ejs b/public/views/index/body.ejs new file mode 100644 index 00000000..b8072450 --- /dev/null +++ b/public/views/index/body.ejs @@ -0,0 +1,175 @@ +
+
+
+ +
+
+

+ +
+
+ +
style="display:none;"<% } %>> +
+

HackMD

+

+ <%= __('Best way to write and share your knowledge in markdown.') %> +

+ <% if (infoMessage && infoMessage.length > 0) { %> +
<%= infoMessage %>
+ <% } %> + <% if (errorMessage && errorMessage.length > 0) { %> +
<%= errorMessage %>
+ <% } %> + <% if(facebook || twitter || github || gitlab || dropbox || google || ldap || email) { %> + + <%= __('or') %> + <% } %> + + +
+
+ +
style="display:none;"<% } %>> + +
+
+
+ +
+
+ +
+ + <%= __('Title') %> + + + <%= __('Time') %> + + + +
+ + +
    +
+
    +
    + +
    +
    + +

    + © 2017 HackMD | <%= __('Releases') %> +

    + +
    +
    +
    +
    +
    + + +<%- include ../shared/signin-modal %> \ No newline at end of file diff --git a/public/views/index/foot.ejs b/public/views/index/foot.ejs new file mode 100644 index 00000000..293c6698 --- /dev/null +++ b/public/views/index/foot.ejs @@ -0,0 +1,13 @@ +<% if(useCDN) { %> + + + + + + + + +<%- include ../build/cover-scripts %> +<% } else { %> +<%- include ../build/cover-pack-scripts %> +<% } %> \ No newline at end of file diff --git a/public/views/index/footer.ejs b/public/views/index/footer.ejs new file mode 100644 index 00000000..e69de29b diff --git a/public/views/index/head.ejs b/public/views/index/head.ejs new file mode 100644 index 00000000..bbd14567 --- /dev/null +++ b/public/views/index/head.ejs @@ -0,0 +1,22 @@ + + + + + + + + +HackMD - <%= __('Collaborative markdown notes') %> + + +<% if(useCDN) { %> + + + + + +<%- include ../build/cover-header %> +<% } else { %> +<%- include ../build/cover-pack-header %> +<% } %> +<%- include ../shared/polyfill %> \ No newline at end of file diff --git a/public/views/index/header.ejs b/public/views/index/header.ejs new file mode 100644 index 00000000..e69de29b -- cgit v1.2.3 From fc00fa74341a43b2f99b085aa52fee57f40082ff Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Sat, 21 Jan 2017 14:24:51 +0800 Subject: Add link to features on profile dropdown --- public/views/index/body.ejs | 1 + 1 file changed, 1 insertion(+) (limited to 'public/views/index') diff --git a/public/views/index/body.ejs b/public/views/index/body.ejs index b8072450..584d67ed 100644 --- a/public/views/index/body.ejs +++ b/public/views/index/body.ejs @@ -26,6 +26,7 @@ -- cgit v1.2.3