Made some small changes
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
"express": "^5.2.1",
|
"express": "^5.2.1",
|
||||||
"express-router": "^0.0.1",
|
"express-router": "^0.0.1",
|
||||||
"markdown-it": "^14.1.0",
|
"markdown-it": "^14.1.0",
|
||||||
"mysql": "^2.18.1",
|
"mssql": "^12.2.0",
|
||||||
"package.json": "^2.0.1"
|
"package.json": "^2.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ export function unix_time_to_atom_date(unix_time)
|
|||||||
// returns: string
|
// returns: string
|
||||||
export function render_tags(tags)
|
export function render_tags(tags)
|
||||||
{
|
{
|
||||||
|
tags = tags.filter((item, index) => tags.indexOf(item) === index) // Remove duplicate tags
|
||||||
let string = "" // Initialises the string
|
let string = "" // Initialises the string
|
||||||
if (tags.length == 1 && tags[0] == "")
|
if (tags.length == 1 && tags[0] == "")
|
||||||
{
|
{
|
||||||
@@ -135,6 +136,7 @@ export function render_md(content)
|
|||||||
typographer: true,
|
typographer: true,
|
||||||
quotes: locale.quotes,
|
quotes: locale.quotes,
|
||||||
})
|
})
|
||||||
|
.disable('image');
|
||||||
return md.render(content)
|
return md.render(content)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -10,13 +10,6 @@
|
|||||||
<header id='page-header'>
|
<header id='page-header'>
|
||||||
<%- include('../headers/timeline'); %>
|
<%- include('../headers/timeline'); %>
|
||||||
</header>
|
</header>
|
||||||
<form method="POST" action="/submit_nothing" style="display:none">
|
|
||||||
<!-- Form is used to help mitigate spam as it is the first form on the front page -->
|
|
||||||
<input type="hidden" name="post_index" value="0">
|
|
||||||
<input placeholder="username" name="name"><br/>
|
|
||||||
<textarea placeholder="comment" name="content"></textarea><br/>
|
|
||||||
<button type="submit">Submit</button>
|
|
||||||
</form>
|
|
||||||
<div id="posts">
|
<div id="posts">
|
||||||
<% for (let index = posts.length - 1; index >= 0; index--) { %>
|
<% for (let index = posts.length - 1; index >= 0; index--) { %>
|
||||||
<% if (posts[index]["deleted"] != true) { %>
|
<% if (posts[index]["deleted"] != true) { %>
|
||||||
@@ -24,13 +17,6 @@
|
|||||||
<% } %>
|
<% } %>
|
||||||
<% } %>
|
<% } %>
|
||||||
</div>
|
</div>
|
||||||
<form method="POST" action="/submit_nothing" style="display:none">
|
|
||||||
<!-- Form is used to help mitigate spam as it is the last form on the front page -->
|
|
||||||
<input type="hidden" name="post_index" value="0">
|
|
||||||
<input placeholder="username" name="name"><br/>
|
|
||||||
<textarea placeholder="comment" name="content"></textarea><br/>
|
|
||||||
<button type="submit">Submit</button>
|
|
||||||
</form>
|
|
||||||
<footer id='footer'>
|
<footer id='footer'>
|
||||||
<%- include('../partials/footer'); %>
|
<%- include('../partials/footer'); %>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
@@ -15,8 +15,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="post-details">
|
<div id="post-details">
|
||||||
<span id="post-author">
|
<span id="post-author">
|
||||||
<i><a href="/user/<%= user.username %>"><%= user.prettyname %></a></i>
|
<i><a href="/user/<%= user.username %>"><%= user.prettyname %></a></i>
|
||||||
</span>
|
</span>
|
||||||
|
-
|
||||||
|
<a if='edit-account-link' href="<%= config.edit_account_base_url %>/<%= user.id %>">
|
||||||
|
<img class='icon' src='/icons/edit.png' alt='<%= locale.edit_account %>' title='<%= locale.edit_account %>'>
|
||||||
|
</a>
|
||||||
-
|
-
|
||||||
<span id="post-pubdate">
|
<span id="post-pubdate">
|
||||||
<i><%= func.unix_time_to_date_format(post.pubdate) %></i><br/>
|
<i><%= func.unix_time_to_date_format(post.pubdate) %></i><br/>
|
||||||
|
|||||||
Reference in New Issue
Block a user