You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cms/maintainer-notes.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ How the admin look-and-feel is configured (all in `admin/config.yml` unless note
40
40
-**Entry-list views (News)**: `thumbnail: image` (grid view shows the news image), date-descending default sort, optional year grouping (no default).
41
41
-**"View on Live Site"** (the ⋯ menu in the entry editor): needs `preview_path` on the collection because Sveltia can't infer Jekyll permalinks — set to the permalink pattern with `{{filename}}` standing in for `:path` (see the Events and News collections). Resolves against `site_url`, i.e. staging. Entry collections only; file-collection page editors have no per-file equivalent.
42
42
-**Body-image tidiness**: Events and News set collection-level `media_folder`/`public_folder` so images inserted into entry bodies land in `/assets/images/events` and `/assets/images/news` rather than the global root.
43
-
-**unDraw illustration bank**: `assets/images/undraw/` holds ~320 unDraw SVGs pre-colored in the three brand accents, named `undraw_<title>_<blue|coral|yellow>.svg`. The Asset Library only shows folders referenced somewhere in the config, so the bank is bound as the `media_folder` of the illustration image fields (hub-page heroes, journey steps, Networks sections) — that gives it its own folder in the Asset Library (instead of polluting the global view) and makes those fields' image picker open straight into it. To grow the bank: a supporter saves undraw.co gallery pages with the brand color applied and the SVGs get extracted from the inline HTML (`fill="currentColor"`must be replaced with the page's hex or the files render black standalone).
43
+
-**unDraw illustration bank**: `assets/images/undraw/` holds ~320 unDraw SVGs pre-colored in the three brand accents, named `undraw_<title>_<blue|coral|yellow>.svg`. It is declared as an **asset collection** (`asset_collections:` in admin/config.yml), which gives it its own folder in the Asset Library and makes it a selectable source in every image field's picker. Caveats: (1) asset collections landed upstream 2026-06-12 (sveltia-cms#301) and need a Sveltia release newer than v0.166.3 — until then the key is ignored and the bank is simply part of the global pool (search "undraw"); (2) do NOT instead bind the folder to specific fields' `media_folder` — a field-scoped folder is invisible to every *other* field's picker (tried; locked the bank away from news images). To grow the bank: a supporter saves undraw.co gallery pages with the brand color applied, and the inline SVGs are extracted with `fill="currentColor"` replaced by the page's hex (otherwise they render black standalone).
44
44
-**Preview pane**: `admin/index.html` registers `admin/preview.css` via `CMS.registerPreviewStyle()` so entry previews use site typography (self-contained `@font-face` for the self-hosted Nunito fonts plus tokens copied from `_sass/_variables.scss` — keep in sync by hand). Data-list file editors set `editor: { preview: false }` because a preview of a raw YAML list is noise.
0 commit comments