Changeset 1f01b99 in Klonkt


Ignore:
Timestamp:
06/15/2026 03:44:22 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
33886fb
Parents:
52badd3
Message:

style: post navigation — Newer on the left, Older on the right

Swapped on request: newest-first convention (going right = older). Left
column now shows the newer post (<- Newer), right column the older (Older ->).
Applies in both hub and solo mode.

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

File:
1 edited

Legend:

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

    r52badd3 r1f01b99  
    286286  <% if (!post.pinned && (prevPost || nextPost)) { %>
    287287    <nav class="post-nav">
     288      <%# Newer links, Older rechts (lijst nieuwste-eerst → naar rechts = ouder).
     289          .post-nav-prev = linker kolom (links uitgelijnd), .post-nav-next =
     290          rechter kolom (rechts uitgelijnd). %>
     291      <% if (nextPost) { %>
     292        <a class="post-nav-prev" href="<%= nextPost._urlBase || '' %>/<%= nextPost.slug %>"<% if (!nextPost._urlBase) { %>
     293           hx-get="/<%= nextPost.slug %>?partial=1" hx-target="#pcms-main"
     294           hx-push-url="/<%= nextPost.slug %>" hx-indicator="#pcms-loading"<% } %>>
     295          <span class="post-nav-label">← Newer</span>
     296          <span class="post-nav-title"><%= nextPost.title %></span>
     297        </a>
     298      <% } else { %><span></span><% } %>
    288299      <% if (prevPost) { %>
    289         <a class="post-nav-prev" href="<%= prevPost._urlBase || '' %>/<%= prevPost.slug %>"<% if (!prevPost._urlBase) { %>
     300        <a class="post-nav-next" href="<%= prevPost._urlBase || '' %>/<%= prevPost.slug %>"<% if (!prevPost._urlBase) { %>
    290301           hx-get="/<%= prevPost.slug %>?partial=1" hx-target="#pcms-main"
    291302           hx-push-url="/<%= prevPost.slug %>" hx-indicator="#pcms-loading"<% } %>>
    292           <span class="post-nav-label">← Older</span>
     303          <span class="post-nav-label">Older →</span>
    293304          <span class="post-nav-title"><%= prevPost.title %></span>
    294         </a>
    295       <% } else { %><span></span><% } %>
    296       <% if (nextPost) { %>
    297         <a class="post-nav-next" href="<%= nextPost._urlBase || '' %>/<%= nextPost.slug %>"<% if (!nextPost._urlBase) { %>
    298            hx-get="/<%= nextPost.slug %>?partial=1" hx-target="#pcms-main"
    299            hx-push-url="/<%= nextPost.slug %>" hx-indicator="#pcms-loading"<% } %>>
    300           <span class="post-nav-label">Newer →</span>
    301           <span class="post-nav-title"><%= nextPost.title %></span>
    302305        </a>
    303306      <% } %>
Note: See TracChangeset for help on using the changeset viewer.