feat: guide a stale link and the first download

Readers reached the 404 page with a pasted command (/i.ps1%20%7C%20iex),
a file name, a GitHub path or a section below a page: the page now says
which it is and leads on. Beside "Start with", the first file's
download sits next to its name.
This commit is contained in:
Abdessamad Derraz committed 2026-11-09 06:04:42 +01:00
1 parent a7a27028ab
commit 29aeccba3c
3 files changed
+148 -12

No files matched your search

+15
View File
@@ -504,6 +504,21 @@ body:has(.rb-sys-file, .rb-file-entry) { --sl-content-width: var(--rb-grid-width
vertical-align: middle;
}
.rb-download:hover { background: var(--sl-color-accent-low); }
/* The download beside a "Start with" file (site.ts startDownloads): the
card's button, at the size of the line it sits in. */
.sl-markdown-content a.rb-start-download {
display: inline-flex;
align-items: center;
min-height: 24px;
padding: 0 0.6rem;
border: 1px solid var(--rb-link);
border-radius: 4px;
font-size: 0.8em;
font-weight: 600;
color: var(--rb-link);
text-decoration: none;
}
.sl-markdown-content a.rb-start-download:hover { background: var(--sl-color-accent-low); }
/* The facts of a file card: label column, value column, one column on a phone. */
.sl-markdown-content dl.rb-facts {