From 5c9262c757cf08353957406280aa56d16f492656 Mon Sep 17 00:00:00 2001 From: Annie Pauline Date: Fri, 25 Nov 2022 19:22:41 +0530 Subject: [PATCH] Add files via upload --- views/about.ejs | 5 +++++ views/compose.ejs | 9 +++++++++ views/contact.ejs | 4 ++++ views/home.ejs | 16 ++++++++++++++++ views/partials/footer.ejs | 9 +++++++++ views/partials/header.ejs | 25 +++++++++++++++++++++++++ views/post.ejs | 4 ++++ 7 files changed, 72 insertions(+) create mode 100644 views/about.ejs create mode 100644 views/compose.ejs create mode 100644 views/contact.ejs create mode 100644 views/home.ejs create mode 100644 views/partials/footer.ejs create mode 100644 views/partials/header.ejs create mode 100644 views/post.ejs diff --git a/views/about.ejs b/views/about.ejs new file mode 100644 index 0000000..4f99dae --- /dev/null +++ b/views/about.ejs @@ -0,0 +1,5 @@ + +<%-include('partials/header')-%> +

About

+

<%=aboutContent%>

+<%-include('partials/footer')-%> diff --git a/views/compose.ejs b/views/compose.ejs new file mode 100644 index 0000000..11a78bf --- /dev/null +++ b/views/compose.ejs @@ -0,0 +1,9 @@ +<%-include('partials/header')-%> +

Compose

+
+
+Title
+Post
+
+ +<%-include('partials/footer')-%> diff --git a/views/contact.ejs b/views/contact.ejs new file mode 100644 index 0000000..ba600f8 --- /dev/null +++ b/views/contact.ejs @@ -0,0 +1,4 @@ +<%-include('partials/header')-%> +

Contact

+

<%=contactContent%>

+<%-include('partials/footer')-%> diff --git a/views/home.ejs b/views/home.ejs new file mode 100644 index 0000000..a802246 --- /dev/null +++ b/views/home.ejs @@ -0,0 +1,16 @@ + + + +<%-include('partials/header.ejs')-%> +

Home

+

<%= homeContent %>

+ +<% posts.forEach(function(post) { %> +

<%=post.title%>

+

+ <%=post.content.slice(0,100) +'...' %> + Read more +

+ +<% }) %> +<%-include('partials/footer')-%> diff --git a/views/partials/footer.ejs b/views/partials/footer.ejs new file mode 100644 index 0000000..f1e51df --- /dev/null +++ b/views/partials/footer.ejs @@ -0,0 +1,9 @@ + + + + + + + diff --git a/views/partials/header.ejs b/views/partials/header.ejs new file mode 100644 index 0000000..dc4dcbf --- /dev/null +++ b/views/partials/header.ejs @@ -0,0 +1,25 @@ + + + + + + Daily Journal + + + + + + +
diff --git a/views/post.ejs b/views/post.ejs new file mode 100644 index 0000000..24915e2 --- /dev/null +++ b/views/post.ejs @@ -0,0 +1,4 @@ +<%-include('partials/header.ejs')-%> +

<%= postTitle %>

+

<%=postContent %>

+<%-include('partials/footer')-%>