https://github.com/100nandoo/ronngoei
Ronn Goei Personal Webistes
https://github.com/100nandoo/ronngoei
daisyui netlify netlify-cms svelte sveltekit tailwindcss
Last synced: 7 months ago
JSON representation
Ronn Goei Personal Webistes
- Host: GitHub
- URL: https://github.com/100nandoo/ronngoei
- Owner: 100nandoo
- Created: 2023-02-19T02:41:20.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-23T05:55:47.000Z (over 1 year ago)
- Last Synced: 2025-01-30T03:44:14.592Z (9 months ago)
- Topics: daisyui, netlify, netlify-cms, svelte, sveltekit, tailwindcss
- Language: Svelte
- Homepage: https://ronngoei.com
- Size: 22.7 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sveltekit-netlifycms
a base repo for a static site with netlifycms & sharp image optimization.
it includes a component for rendering the markdown to html with a custom image component. the image component gets a range of options (an array of sizes, formats, quality, etc.). each page that uses netlifycms for content needs an endpoint in which the markdown is processed.
look to `src/routes/post/[slug]/+page.server.ts` to see how to set up an endpoint and to `src/routes/post/[slug]/+page.svelte` to see how to set up the corresponding page. look to `src/lib/types.ts` to get information about the image options.
for a inspirations on how to set up netlifycms look to `static/admin/config.yml`
## to do
- [x] add image component
- [x] add rich text processing