1# An owner's page opens on "all": one panel of every repo, newest first,2# whatever its shelf, so what changed lately is at the top, and no shelf3# headings in it. Each shelf has a panel of its own after it, which ui.ts4# (or, without JS, the address) shows instead when its tab is picked.5. "$(dirname "$0")/../lib.sh"6user dami7for r in chess go notes blog; do8 repo "dami/$r"9 clone dami "dami/$r" "$T/w/$r"10 tick 360011 at "$T/w/$r" commit "first"12 push_as dami "$T/w/$r" origin main13done14printf 'games\n' >"$FORGE_ROOT/dami/chess.git/category"15printf 'games\n' >"$FORGE_ROOT/dami/go.git/category"16printf 'tools\n' >"$FORGE_ROOT/dami/notes.git/category"17export FORGE_STRICT=118build19i=$FORGE_WWW/dami/index.html20# The page as built: "all" first, then the shelves, fuller first.21eq "$(grep -o '<section class="panel shelf" data-shelf="[a-z]*"' "$i" | sed 's/.*="//; s/"$//' | tr '\n' ' ')" " games tools other "22has "$i" '<section class="panel shelf" data-shelf=""><header class="panel-head day-head" hidden>'23has "$i" '<a href="#shelves" class="cur" aria-current="page" data-shelf="">all<span class="n">4</span></a>'24# As a reader sees it: one panel, newest first.25eq "$(node --no-warnings "$T_HOME/test/page.ts" shelves "$i")" "all 4: blog notes go chess"