/site-xyz

Primary LanguageSvelte

Wall to Wall Site

CMS On Netlify

Netlify Admin Page

TODO

  • tailwind
  • sitemap
  • catch errors globally?
  • monitoring
  • analytics
  • comments?

TOC

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

Usage

Prereqs:

  • npm

Develop locally:

npm install
npm run dev
npm run build
npm run preview

Deploy:

git commit

Technical Intro

Style

Mdsvex

i18n

Related

Netlify

One-time Setup

Docs

Netlify

  1. Go to Settings > Identity, and select Enable Identity service.
  • Under Registration preferences, Invite-Only
  • External Providers -> Github -> One Click Login
  1. Services > Git Gateway -> Enable Git Gateway.

In repo

netlify link
netlify lm:setup
  1. Alternative to Git Gateway

Add Github to Access

Obsolete

git lfs track "static/media/**"
git lfs ls-files