<% isEvent = false post.tags.data.forEach(function(tag) { if ( (tag.name == "Events") && (!isEvent) ) { isEvent = true } }); %> <% if(isEvent) { %> <% if(source == "index") { %> <% if(event == 2) { %>
<%=  post.title || " style="max-height: 250px" width="300px" /> <%- include('event', { page: post }) %>
<% } else if(event == 1) { %>

Video of our last event: <%= post.title || "Untitled" %>

<% if(post.event.video != "TBD") { %>
<%- post.event.video %>
<%} %> <% } %> <% } else { %>
<% if(post.event.video != "TBD") { %>
<% } else { %>
<% } %>>

<%= post.title || "Untitled" %>

<%= post.description %>

Read More...

<% post.tags.data.forEach(function(tag) { %> #<%= tag.name %> <% }); %>
<% if(post.event.video != "TBD") { %>
<%- post.event.video %>
<% } %>
<% } %> <% } else { %>
<% if(post.photos && post.photos.length) { %> <% classTag = "post-with-image" %> <% } else { %> <% classTag = "post-without-image" %> <% } %> <% if(source == "index") { %>
<% } else if (isEvent) { %>
<% } else { %>
<% } %>
<% if(post.photos && post.photos.length) { %>
<%- post.title || 'Untitled' %>
<% } %>

<%= post.title || "Untitled" %>

<%= post.description %>

Read More...

<% post.tags.data.forEach(function(tag) { %> #<%= tag.name %> <% }); %>
<% } %>