Initial upload

uploaded v0.1
This commit is contained in:
Bashy 2025-02-10 17:38:16 +02:00 • committed by GitHub
parent 7ca416624c
commit ffb8736de2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 642 additions and 0 deletions

28
layout/_partial/feed.ejs Normal file
View file

@ -0,0 +1,28 @@
<!-- Default number of columns is two. If 3 is defined, then third column is added-->
<% columns = theme.column; %> <!-- Number of columns -->
<div class="posts-container">
<div class="column column-0">
<% item.forEach(function(post, index) { %>
<% if (index % columns === 0) { %>
<%- include('post_feed', { post: post }) %>
<% } %>
<% }); %>
</div>
<div class="column column-1">
<% item.forEach(function(post, index) { %>
<% if (index % columns === 1) { %>
<%- include('post_feed', { post: post }) %>
<% } %>
<% }); %>
</div>
<!-- Condition for column number 3 -->
<% if (columns === 3) { %>
<div class="column column-2">
<% item.forEach(function(post, index) { %>
<% if (index % columns === 2) { %>
<%- include('post_feed', { post: post }) %>
<% } %>
<% }); %>
</div>
<% } %>
</div>