added a main id so central section can be styled
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
<%- include("../partials/head") %>
|
||||
</head>
|
||||
<body>
|
||||
<div id="main">
|
||||
Misc:<br/>
|
||||
<a href="<%= config.site_path %>/">Home Page</a><br/>
|
||||
<a href="<%= config.site_path %><%= config.new_post_url %>">New Post Form</a><br/>
|
||||
@@ -43,5 +44,6 @@
|
||||
<% }; %>
|
||||
<% }; %>
|
||||
<!-- TODO add tags -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -4,10 +4,12 @@
|
||||
<%- include("../partials/head") %>
|
||||
</head>
|
||||
<body>
|
||||
<div id="main">
|
||||
<% for (let postID = 0; postID < comments.length; postID++) { %>
|
||||
<% for (let comment_index = 0; comment_index < comments[postID]['comments'].length; comment_index++) { %>
|
||||
<a href="<%= config.site_path %>/comment/<%= postID %>-<%= comment_index %>"><%= postID %>-<%= comment_index %></a><br/>
|
||||
<% }; %>
|
||||
<% }; %>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -4,10 +4,12 @@
|
||||
<%- include("../partials/head") %>
|
||||
</head>
|
||||
<body>
|
||||
<div id="main">
|
||||
<% for (let postID = 0; postID < posts.length; postID++) { %>
|
||||
<% if (posts[postID]["deleted"] != true) { %>
|
||||
<a href="<%= config.site_path %>/post/<%= postID %>"><%= posts[postID]["title"] %></a><br/>
|
||||
<% }; %>
|
||||
<% }; %>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -4,10 +4,12 @@
|
||||
<%- include("../partials/head") %>
|
||||
</head>
|
||||
<body>
|
||||
<div id="main">
|
||||
<% for (let userID = 0; userID < users.length; userID++) { %>
|
||||
<% if (users[userID]["deleted"] != true) { %>
|
||||
<a href="<%= config.site_path %>/user/<%= users[userID]["username"] %>"><%= users[userID]["username"] %></a><br/>
|
||||
<% }; %>
|
||||
<% }; %>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<%- include('../partials/head'); %>
|
||||
</head>
|
||||
<body>
|
||||
<div id="main">
|
||||
<header id="site-header">
|
||||
<%- include("../headers/site_wide") %>
|
||||
</header>
|
||||
@@ -22,5 +23,6 @@
|
||||
<button type="submit"><%= locale.submit %></button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<%- include('../partials/head'); %>
|
||||
</head>
|
||||
<body>
|
||||
<div id="main">
|
||||
<header id="site-header">
|
||||
<%- include("../headers/site_wide") %>
|
||||
</header>
|
||||
@@ -13,5 +14,6 @@
|
||||
<footer id='footer'>
|
||||
<%- include('../partials/footer'); %>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<%- include('../partials/head'); %>
|
||||
</head>
|
||||
<body>
|
||||
<div id="main">
|
||||
<div id='site-header'>
|
||||
<%- include('../headers/site_wide'); %>
|
||||
</div>
|
||||
@@ -33,5 +34,6 @@
|
||||
<a href="/user/<%- result.username %>"><%- result.prettyname %></a><br/>
|
||||
<% }); %>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<%- include('../partials/head'); %>
|
||||
</head>
|
||||
<body>
|
||||
<div id="main">
|
||||
<header id="site-header">
|
||||
<%- include('../headers/site_wide'); %>
|
||||
</header>
|
||||
@@ -24,5 +25,6 @@
|
||||
<footer id='footer'>
|
||||
<%- include('../partials/footer'); %>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<%- include('../partials/head'); %>
|
||||
</head>
|
||||
<body>
|
||||
<div id="main">
|
||||
<header id="site-header">
|
||||
<%- include("../headers/site_wide") %>
|
||||
</header>
|
||||
@@ -20,5 +21,6 @@
|
||||
<footer id='footer'>
|
||||
<%- include('../partials/footer'); %>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<%- include('../partials/head'); %>
|
||||
</head>
|
||||
<body>
|
||||
<div id="main">
|
||||
<header id="site-header">
|
||||
<%- include("../headers/site_wide") %>
|
||||
</header>
|
||||
@@ -20,5 +21,6 @@
|
||||
<footer id='footer'>
|
||||
<%- include('../partials/footer'); %>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="<%= config.charset %>" ?>
|
||||
<rss version="2.0">
|
||||
<channel>
|
||||
<title><%= config.site_name %></title>
|
||||
<link><%= config.site_url %></title>
|
||||
<description><%= config.site_description %></description>
|
||||
<% for (let postID = posts.length-1; postID >= 0; postID--) { %>
|
||||
<% if (posts[postID]["deleted"] != true) { %>
|
||||
<item>
|
||||
<title><%= posts[postID]["title"] %></title>
|
||||
<link><%= config.site_url %>/post/<%= postID %></link>
|
||||
<description><![CDATA[<%- func.render_md(posts[postID]["content"]) %>]]></description>
|
||||
<guid isPermaLink="true"><%= config.site_url %>/post/<%= postID %></guid>
|
||||
<pubDate><%= func.unix_time_to_rss_date(posts[postID]['pubdate']) %></pubDate>
|
||||
<% for (let tag_index = 0; tag_index < posts[postID]['tags'].length; tag_index++) { %>
|
||||
<category><![CDATA[<%= posts[postID]['tags'][tag_index] %>]]></category>
|
||||
<% } %>
|
||||
</item>
|
||||
<% } %>
|
||||
<% } %>
|
||||
</channel>
|
||||
</rss>
|
||||
Reference in New Issue
Block a user