Design updates, adding 2027 posts

This commit is contained in:
Bashy 2026-10-05 23:12:01 +03:00
parent 2d50bec4cb
commit e51d53994a
30 changed files with 521 additions and 81 deletions

View file

@ -3,8 +3,9 @@
post.tags.data.forEach(function(tag) {
if ( (tag.name == "Events") && (!isEvent) ) {
isEvent = true
}
}
});
titlePrefix = (isEvent && post.event && post.event.status === "cancelled") ? "[Cancelled] " : ""
%>
<!-- This is the template for the post. It is used to display the posts in the feeds. -->
@ -17,7 +18,7 @@
<%- include('event', { page: post }) %>
</div>
<% } else if(event == 1) { %>
<a href='<%= url_for(post.path) %>'><h1>Video of our last event: <%= post.title || "Untitled" %></h1></a>
<a href='<%= url_for(post.path) %>'><h1>Video of our last event: <%= titlePrefix %><%= post.title || "Untitled" %></h1></a>
<% if(post.event.video != "TBD") { %>
<div class="vhsky-video">
@ -34,7 +35,7 @@
<div class="post-without-video">
<% } %>>
<div class="post-blerp">
<a href='<%= url_for(post.path) %>'><h2><%= post.title || "Untitled" %></h2>
<a href='<%= url_for(post.path) %>'><h2><%= titlePrefix %><%= post.title || "Untitled" %></h2>
<div class="date smoll">
<%- include('date', { date: post.date.toISOString() }) %></a>
</div>