CMS On Netlify
- https://lucid-hodgkin-cc7294.netlify.app/admin/index.html
- dev: http://localhost:5173/admin/index.html
Netlify Admin Page
- tailwind
- sitemap
- catch errors globally?
- monitoring
- analytics
- comments?
static
- admin
- config.yml -- CMS config
- index.html -- CMS entrypoint
- favicon.png
- uploads
- CMS-editable images
doc
- source markdown files
src
- routes - svelte routes
- comp
- *.svelte -- components
- layouts
- default.svelte -- default template
root
- /netlify.toml -- config
Prereqs:
- npm
Develop locally:
npm install
npm run dev
npm run build
npm run preview
Deploy:
git commit
Style
- tailwind - https://tailwindcss.com/docs/guides/sveltekit
- windicss
- https://windicss.org/guide/configuration.html
npx windicss-analysis
- flowbite - https://flowbite.com/docs/getting-started/introduction/
Mdsvex
-
embedded js:
<script> <script context="module">
i18n
Related
- https://github.com/rodneylab/sveltekit-blog-mdx
- Based on sveltekit-netlify-cms.
Netlify
- forms: https://docs.netlify.com/site-deploys/post-processing/form-detection/
- large media: https://app.netlify.com/sites/lucid-hodgkin-cc7294/large-media
Docs
Netlify
- Go to Settings > Identity, and select Enable Identity service.
- Under Registration preferences, Invite-Only
- External Providers -> Github -> One Click Login
- Services > Git Gateway -> Enable Git Gateway.
In repo
netlify link
netlify lm:setup
- Alternative to Git Gateway
Add Github to Access
git lfs track "static/media/**"
git lfs ls-files