diff --git a/src/server.js b/src/server.js index 998d304..72c0b59 100644 --- a/src/server.js +++ b/src/server.js @@ -101,6 +101,7 @@ app.get("/", (req,res) => { format, getUnixTime, func, + converter, }) }); // / app.get("/user/:username", (req, res) => { @@ -118,6 +119,7 @@ app.get("/user/:username", (req, res) => { format: format, getUnixTime: getUnixTime, func, + converter, }) }); // /user/:username app.get("/post/:post_index", (req, res) => { @@ -133,6 +135,7 @@ app.get("/post/:post_index", (req, res) => { format, getUnixTime, func, + converter, }) }); // /post/:post_index app.get("/tag/:tag", (req,res) => { @@ -148,6 +151,7 @@ app.get("/tag/:tag", (req,res) => { format: format, getUnixTime: getUnixTime, func, + converter, }) }); // /tag/:tag diff --git a/views/posts/post.ejs b/views/posts/post.ejs index 9106294..550a68d 100644 --- a/views/posts/post.ejs +++ b/views/posts/post.ejs @@ -1,11 +1,10 @@

<%= post.title %>

-<%= post.content %>
+<%- converter.makeHtml(post.content) %>
By <%= user.username %>
-
<%- func.hyperlink_tags(post.tags) %>
Edit
Published: <%= func.unix_time_to_date_format(post.pubdate) %>
diff --git a/views/posts/tag.ejs b/views/posts/tag.ejs index 9b468fb..c824736 100644 --- a/views/posts/tag.ejs +++ b/views/posts/tag.ejs @@ -1,7 +1,7 @@

<%= post.title %>

-<%= post.content %>
+<%- converter.makeHtml(post.content) %>
Permalink
<%- func.hyperlink_tags(post.tags) %> diff --git a/views/posts/timeline.ejs b/views/posts/timeline.ejs index 6951340..c140154 100644 --- a/views/posts/timeline.ejs +++ b/views/posts/timeline.ejs @@ -1,7 +1,7 @@

<%= post.title %>

-<%= post.content %>
+<%- converter.makeHtml(post.content) %>
Permalink
By <%= user.username %>
diff --git a/views/posts/user.ejs b/views/posts/user.ejs index f449c02..8fa9adf 100644 --- a/views/posts/user.ejs +++ b/views/posts/user.ejs @@ -1,7 +1,7 @@

<%= post.title %>

-<%= post.content %>
+<%- converter.makeHtml(post.content) %>
Permalink