From d1ae870f2dac369c98ed01ebe24e87369f6383ea Mon Sep 17 00:00:00 2001 From: Bendik Aagaard Lynghaug Date: Sun, 4 Oct 2026 22:52:50 +0200 Subject: [PATCH] The releases card shows the cut you should run MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit One card per release made the section grow forever, and the newest cut is the one a visitor should actually run — the rest are history, not an invitation. `limit` is the portal's mechanism for this (uhhm/portal 22d086f) and this site is pinned to PORTAL_RELEASE v0.5.2, which predates it, so the jq takes `.[0]` instead of `.[]` and that is what does the work today. `limit: 1` is declared alongside it: v0.5.2 ignores fields it does not know, so it costs nothing now and takes over when the pin moves forward, at which point the jq goes back to `.[]`. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01ByshXuDEzH8hXh5qp4VgGk --- questions/index.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/questions/index.yaml b/questions/index.yaml index 3fd2ed0..7337192 100644 --- a/questions/index.yaml +++ b/questions/index.yaml @@ -138,12 +138,24 @@ alternatives: repo: redoal public: true empty: Nothing released yet — the first cut lands here. + # Only the newest cut. A card per release made this section + # grow forever, and the one a visitor should run is the latest + # — the rest are history, not an invitation. + # + # `limit` is the portal mechanism for this (uhhm/portal + # 22d086f, content-reference "A resource"), and this site is + # pinned to PORTAL_RELEASE v0.5.2, which predates it. So the + # `.[0]` below is what actually does the work today and + # `limit: 1` is the same intent declared for when the pin + # moves forward; at that point `.[0]` goes back to `.[]` and + # the field takes over. + limit: 1 # url pinned to null while the repo is private - a private # release's html_url 404s for anonymous visitors, and the # card renders an unlinked heading instead (same lesson as # uhhm/questions 9b7162f). jq: > - .[] | {name: .name, description: .body, tag: .tag_name, + .[0] | {name: .name, description: .body, tag: .tag_name, published: .published_at, url: null} - name: Test the iPhone app description: >