mirror of
https://gitlab.com/OpenAlt/OpenAltRO/openalt_ro.git
synced 2026-11-23 15:19:15 +00:00
Add the theme
This commit is contained in:
parent
cff7000285
commit
142a478a6a
21 changed files with 663 additions and 1 deletions
22
themes/openalt/layout/_partial/index/feed_preview.ejs
Normal file
22
themes/openalt/layout/_partial/index/feed_preview.ejs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<section id="feed_preview">
|
||||
|
||||
<div class="feed_preview">
|
||||
<% counter = 3 %>
|
||||
<% page.posts.forEach(function(post) { %>
|
||||
<% if (counter != 0) { %>
|
||||
<% isEvent = false %>
|
||||
<% post.tags.data.forEach(function(tag) { %>
|
||||
<% if (tag.name == "Events") { %>
|
||||
<% isEvent = true %>
|
||||
<% } %>
|
||||
<% }); %>
|
||||
|
||||
<% if (isEvent == false) { %>
|
||||
<%- include('./../post_feed', { post: post }) %>
|
||||
<% counter = counter - 1 %>
|
||||
<% } %>
|
||||
<% } %>
|
||||
<% }); %>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
13
themes/openalt/layout/_partial/index/main_event.ejs
Normal file
13
themes/openalt/layout/_partial/index/main_event.ejs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<section class="event">
|
||||
|
||||
<% counter = false %>
|
||||
<% page.posts.forEach(function(post) { %>
|
||||
<% post.tags.data.forEach(function(tag) { %>
|
||||
<% if ( (tag.name == "Events") && (counter == false) ) { %>
|
||||
<%- include('./../post_event', { post: post }) %>
|
||||
<% counter = true %>
|
||||
<% } %>
|
||||
<% }); %>
|
||||
<% }); %>
|
||||
|
||||
</section>
|
||||
18
themes/openalt/layout/_partial/index/partners.ejs
Normal file
18
themes/openalt/layout/_partial/index/partners.ejs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<section id="partners">
|
||||
|
||||
<div class="section-title">
|
||||
<h1>Brought to you by:</h1>
|
||||
</div>
|
||||
|
||||
<div class="partners">
|
||||
<ul class="partners">
|
||||
<% site.data.partners.forEach(function(partner) { %>
|
||||
<li>
|
||||
<a href="<%= partner.url %>">
|
||||
<img src="<%= partner.logo %>" alt="<%= partner.name %>">
|
||||
</a>
|
||||
</li>
|
||||
<% }); %>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
Loading…
Add table
Add a link
Reference in a new issue