Skip to content

feat: Icons not editable in Sveltia CMS Assets view — media_folder mismatch (#79) - #80

Merged
baderdean merged 1 commit into
mainfrom
boucle/79-icons-not-editable-in-sveltia-cms
Aug 20, 2026
Merged

feat: Icons not editable in Sveltia CMS Assets view — media_folder mismatch (#79)#80
baderdean merged 1 commit into
mainfrom
boucle/79-icons-not-editable-in-sveltia-cms

Conversation

@baderdean

Copy link
Copy Markdown
Member

Issue #79 — iteration 1/5

Screenshots (screenshot review mode)

📱 Mobile (390x844)

Screenshot 390x844

🖥️ Desktop (1440x900)

Screenshot 1440x900

What changed

Approach

  • Changed media_folder to /public and public_folder to / in public/admin/config.yml (Option B, author-chosen) so every committed asset under public/ — including the 16 SVG icons in public/icons/ — is visible and editable in the Sveltia CMS Assets view.
  • Switched the Step and Card icon fields from widget: string to widget: image so editors pick an icon from the Assets library instead of typing a path. public_folder: / keeps the stored value root-relative (/icons/step-1.svg), so existing content and Astro rendering are unchanged (no regression).
  • Added a logo image field to the Footer collection in config.yml, a logo: z.string() field to the footer schema in src/content.config.ts, and logo: /boucle-logo.png frontmatter in src/content/footer/footer.md.
  • Rendered the non-animated boucle-logo.png in the footer of src/pages/index.astro above the "Made in" text, marked purely decorative (alt="", aria-hidden="true"), with a .footer-logo CSS rule.
  • Updated the README CMS section to describe the Assets library / image-picker workflow instead of path typing.

Scope self-check:

  • Task as stated: Option B media_folder + image widgets + decorative CMS-editable footer logo.
  • Files I touched: public/admin/config.yml, src/content.config.ts, src/content/footer/footer.md, src/pages/index.astro, README.md.
  • Lines I'm tempted to add but won't: none.
  • Abstractions considered and rejected: none.
  • Diff size: 5 files, +30/−13.
  • Could it be smaller? no.

Closes #79 | 1 commit(s) | boucle worker run 1/5 | mode: deploy=self review=preview

@baderdean
baderdean merged commit bbc843d into main Aug 20, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Icons not editable in Sveltia CMS Assets view — media_folder mismatch

1 participant