Changeset d15b27f in Klonkt for src/views


Ignore:
Timestamp:
06/16/2026 07:13:18 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
ec2e358
Parents:
544cd86
Message:

Archive: Timeline/Grid greyed on archive + back button (+ English text)

(1) The active highlight on the view-switcher was bound to body[data-feed-view]
without a page check → kept lighting up on /archive. Now :not(.on-archive)
→ both buttons neutral/grey on the archive page.
(2) Back button at the top of /archive (htmx to the homepage).
(3) Archive→Archive, posts→posts, "No posts yet" text corrected.

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

File:
1 edited

Legend:

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

    r544cd86 rd15b27f  
    2424<!-- ========== TIMELINE (year/month grouped) ========== -->
    2525<div class="container archive-page feed-timeline">
    26   <h1>Archive</h1>
    27   <p class="archive-meta"><%= totalPosts %> post<%= totalPosts !== 1 ? 's' : '' %></p>
     26  <% var _archBase = (typeof siteUrlBase !== 'undefined' && siteUrlBase) ? siteUrlBase : ''; %>
     27  <p class="archive-back-row">
     28    <a href="<%= _archBase %>/" class="btn archive-back"
     29       hx-get="<%= _archBase %>/?partial=1" hx-target="#pcms-main"
     30       hx-push-url="<%= _archBase %>/" hx-indicator="#pcms-loading">&larr; Terug</a>
     31  </p>
     32  <h1>Archief</h1>
     33  <p class="archive-meta"><%= totalPosts %> bericht<%= totalPosts !== 1 ? 'en' : '' %></p>
    2834
    2935  <% if (totalPosts === 0) { %>
    30     <p class="empty-state">No posts yet.</p>
     36    <p class="empty-state">Nog geen berichten.</p>
    3137  <% } %>
    3238
     
    6874<style>
    6975.archive-page { max-width: 700px; margin: 2rem auto; padding: 0 1rem; }
     76.archive-back-row { margin: 0 0 1rem; }
    7077.archive-page h1 { font-family: var(--font-display, serif); margin: 0 0 0.25rem; }
    7178.archive-meta { color: var(--ink-muted); margin-bottom: 2rem; }
Note: See TracChangeset for help on using the changeset viewer.