Changeset 8cdb377 in Klonkt for src/views


Ignore:
Timestamp:
06/19/2026 09:40:04 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
535f955
Parents:
1e2e9e7
Message:

ui(post-nav): show 📌 when the Newer/Older post is pinned

postNeighbors() now also selects pinned; the partial shows a 📌 next to
the label of a pinned neighbour (solo + hub).

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

File:
1 edited

Legend:

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

    r1e2e9e7 r8cdb377  
    88         hx-get="/<%= newerPost.slug %>?partial=1" hx-target="#pcms-main"
    99         hx-push-url="/<%= newerPost.slug %>" hx-indicator="#pcms-loading"<% } %>>
    10         <span class="post-nav-label">← Newer</span>
     10        <span class="post-nav-label"><% if (newerPost.pinned) { %><span class="post-nav-pin" title="Vastgepind">📌</span> <% } %>← Newer</span>
    1111        <span class="post-nav-title"><%= newerPost.title %></span>
    1212      </a>
     
    2121         hx-get="/<%= olderPost.slug %>?partial=1" hx-target="#pcms-main"
    2222         hx-push-url="/<%= olderPost.slug %>" hx-indicator="#pcms-loading"<% } %>>
    23         <span class="post-nav-label">Older →</span>
     23        <span class="post-nav-label">Older →<% if (olderPost.pinned) { %> <span class="post-nav-pin" title="Vastgepind">📌</span><% } %></span>
    2424        <span class="post-nav-title"><%= olderPost.title %></span>
    2525      </a>
     
    4545.post-nav-label { font-size: 0.8rem; color: var(--ink-muted); margin-bottom: 0.25rem; }
    4646.post-nav-title { font-weight: 500; }
     47.post-nav-pin { font-size: 0.85em; }
    4748@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } }
    4849</style>
Note: See TracChangeset for help on using the changeset viewer.