Changeset c7c7f02 in Klonkt for src/views/partials/post-card.ejs


Ignore:
Timestamp:
06/26/2026 01:01:54 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
b6cdc3d
Parents:
bbce8da
Message:

feat(cirkel): render boosted posts in the pinned style with a Boost badge

A post you boosted (ap_timeline.boosted) now stands out in the Cirkel: same visual
treatment as a pinned post on the solo page (accent outline in grid, badge), but the
badge reads 'Boost' (🔁/loop icon) instead of 'Pinned'. Featured-account posts stay
normal. getCirkelPosts returns t.boosted; circle.js sets isBoost; post-card/post-tile
swap the badge + reuse is-pinned styling. No effect on the home page (isBoost only set
in the Cirkel).

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/partials/post-card.ejs

    rbbce8da rc7c7f02  
    1919const _typeLabel = (post.type && post.type !== 'overig' && post.type !== 'post') ? post.type : '';
    2020const _isPinned  = !!post.pinned;
     21const _isBoost   = !!post.isBoost;
    2122const _isDraft   = post.status && post.status !== 'published';
    2223
     
    4243}
    4344%>
    44 <li class="post-list-item<%= _hasCover ? ' has-cover' : '' %><%= _isPinned ? ' is-pinned' : '' %>">
     45<li class="post-list-item<%= _hasCover ? ' has-cover' : '' %><%= (_isPinned || _isBoost) ? ' is-pinned' : '' %>">
    4546
    4647  <% if (_hasCover) { %>
     
    5455  <div class="post-list-body">
    5556    <div class="post-list-meta mono">
    56       <% if (_isPinned) { %><span class="post-list-pin" aria-label="Vastgepind">★</span><% } %>
     57      <% if (_isBoost) { %><span class="post-list-pin post-list-boost" aria-label="Boost">🔁</span><% } else if (_isPinned) { %><span class="post-list-pin" aria-label="Vastgepind">★</span><% } %>
    5758      <time datetime="<%= post.published_at || post.created_at %>"><%= _ddmmyyyy(post.published_at || post.created_at) %></time>
    5859      <% if (_src) { %><span class="post-list-type">&middot; via <%= _src %></span><% } %>
Note: See TracChangeset for help on using the changeset viewer.