abtmtr-v13/views/pages/updates.ejs
2024-08-31 00:54:10 -05:00

21 lines
No EOL
713 B
Text

<!DOCTYPE html>
<html>
<%- include("../components/page-head.ejs") %>
<body>
<main>
<h1>updates</h1>
<p><%= rss.description %><br />subscribe to the <a href="/rss">rss feed</a>!</p>
<h2>items</h2>
<ul>
<% rss.items.forEach((item) => { %>
<li>
<h3><a href="<%= item.link %>"><%= item.title %></a></h3>
<p class="nomargin" style="opacity: 0.5">by <%= item.author %> / <%= new Date(item.isoDate).toLocaleString(rss.language) %> Central Time</p>
<p style="white-space: pre-line;"><%= item.content.trim() %></p>
</li>
<% }) %>
</ul>
</main>
<%- include("../components/footer.ejs") %>
</body>
</html>