mirror of
https://gitlab.com/OpenAlt/OpenAltRO/openalt_ro.git
synced 2026-11-23 15:19:15 +00:00
Updated design of the site as well as added new event
This commit is contained in:
parent
1e33326b03
commit
6b0249f5dc
13 changed files with 433 additions and 47 deletions
|
|
@ -1,3 +1,12 @@
|
|||
<%
|
||||
isEvent = false
|
||||
page.tags.data.forEach(function(tag) {
|
||||
if ( (tag.name == "Events") && (!isEvent) ) {
|
||||
isEvent = true
|
||||
}
|
||||
});
|
||||
%>
|
||||
|
||||
<div class="post-page post">
|
||||
<% if(page.photos && page.photos.length) { %>
|
||||
<div class="post-cover">
|
||||
|
|
@ -6,6 +15,10 @@
|
|||
<% } %>
|
||||
|
||||
<div class="post-text-wrapper">
|
||||
<% if(isEvent) { %>
|
||||
<div class="post-event">
|
||||
<%- include('_partial/event') %>
|
||||
<% } else { %>
|
||||
<div class="post-text">
|
||||
<div class="post-header">
|
||||
<h1 class="article"><%= page.title || "Untitled" %></h1>
|
||||
|
|
@ -24,6 +37,8 @@
|
|||
<% } else {console.log(page)} %>
|
||||
</div>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue