feat: Icons not editable in Sveltia CMS Assets view — media_folder mismatch (#79) - #80
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #79 — iteration 1/5
Screenshots (screenshot review mode)
📱 Mobile (390x844)
🖥️ Desktop (1440x900)
What changed
Approach
media_folderto/publicandpublic_folderto/inpublic/admin/config.yml(Option B, author-chosen) so every committed asset underpublic/— including the 16 SVG icons inpublic/icons/— is visible and editable in the Sveltia CMS Assets view.iconfields fromwidget: stringtowidget: imageso 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).logoimage field to the Footer collection inconfig.yml, alogo: z.string()field to the footer schema insrc/content.config.ts, andlogo: /boucle-logo.pngfrontmatter insrc/content/footer/footer.md.boucle-logo.pngin the footer ofsrc/pages/index.astroabove the "Made in" text, marked purely decorative (alt="",aria-hidden="true"), with a.footer-logoCSS rule.Scope self-check:
public/admin/config.yml,src/content.config.ts,src/content/footer/footer.md,src/pages/index.astro,README.md.Closes #79 | 1 commit(s) | boucle worker run 1/5 | mode: deploy=self review=preview