Changeset 221a209 in Klonkt for src/views/pages/circle-post.ejs


Ignore:
Timestamp:
06/16/2026 08:52:32 PM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
2248cd2
Parents:
fb02cc0
Message:

Circle: carry over + display tags from the original post

Publisher puts tags as AS Hashtag array in the outbox (href pointing to the
source tag page). Consumer parses + caches them (remote_posts.tags). Feed
cards display them (post-card), and the reader shows tag chips that link to
the /tag page of the source.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/circle-post.ejs

    rfb02cc0 r221a209  
    2323  <div class="cirkel-post-body"><%= post.body %></div>
    2424
     25  <% if (post.tags && post.tags.length) { %>
     26    <div class="cirkel-post-tags">
     27      <% post.tags.forEach(function(t){ %>
     28        <% if (post.sourceTagBase) { %>
     29          <a class="cirkel-tag" href="<%= post.sourceTagBase %>/tag/<%= encodeURIComponent(t) %>" target="_blank" rel="noopener">#<%= t %></a>
     30        <% } else { %>
     31          <span class="cirkel-tag">#<%= t %></span>
     32        <% } %>
     33      <% }); %>
     34    </div>
     35  <% } %>
     36
    2537  <% if (post.originalUrl) { %>
    2638    <p class="cirkel-post-readmore">
     
    4254.cirkel-post-cover { width: 100%; border-radius: var(--radius); margin: 0 0 1.5rem; display: block; }
    4355.cirkel-post-body { font-size: 1.05rem; line-height: 1.7; white-space: pre-wrap; color: var(--ink); }
     56.cirkel-post-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.25rem; }
     57.cirkel-tag { font-size: .8rem; color: var(--ink-muted); background: var(--paper-2); border: 1px solid var(--rule); border-radius: 999px; padding: .15rem .6rem; text-decoration: none; }
     58.cirkel-tag:hover { border-color: var(--accent); color: var(--accent); }
    4459.cirkel-post-readmore { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
    4560.cirkel-post-readmore a { color: var(--accent); text-decoration: none; font-weight: 600; }
Note: See TracChangeset for help on using the changeset viewer.