<%= t('cfeed.title') %>

<%= t('cfeed.sub') %>

<% if (typeof sites !== 'undefined' && sites && sites.length) { %> <% if (sites.length <= 5) { %>
<% sites.forEach(function(s){ %> <% if (s.url) { %><% } else { %><% } %> style="background-image:url('<%= s.avatar %>')"<% } %>><% if (!s.avatar) { %><%= (s.name || '?').charAt(0).toUpperCase() %><% } %> <%= s.name %> <% if (s.url) { %><% } else { %><% } %> <% }); %>
<% } else { %> <%# More than 5: no chips (would become a wall) — show the count only. %> <%= t('cfeed.count', { n: sites.length }) %> <% } %> <% } %>
<% if (!posts.length) { %>

<%= t('cfeed.empty') %>

<% } else { %> <%# Same view as the home page: timeline (post-card) + grid (post-tile), switched by the view-switcher via body[data-feed-view]. The remote posts are shaped to the local post format in circle.js (with external_url, so cards link to the source site). %>
<% posts.forEach(function(post){ %> <%- include('../partials/post-tile', { post: post }) %> <% }); %>
<% } %>