A microsite for Climate Policy Radar - Building the evidence base for evidence-based policymaking
- Dev: https://localhost:3000/
- Staging/QA: auto-generated when new PRs opened
- Production: https://climatepolicyradar.org/
- Trello: https://trello.com/b/lkWx4xWz/climate-policy-radar
- Clone this repo
git clone [email protected]:smithfield-studio/client-climate-policy-radar.git
- Move into project
cd client-climate-policy-radar
- Run
nvm use
to ensure you're using Nodev16
- Install dependencies
yarn
/npm i
- Start dev server
yarn dev
/npm run dev
Merge PR / push to production
branch to auto deploy to live site
Built using SvelteKit static site generator, the documentation is pretty good and there is an active community on Discord.
The VSCode editor is recommended - you will be prompted to install useful extensions (Svelte syntax highlighting etc) when first opening the project.
Content added using Markdown via mdsvex (Docs) allowing Svelte components to be used within Markdown content.
- Create a new .md file with the desired slug, ie.
./src/routes/[jobs|latest]/{url-slug}.md
- Add Any Markdown / HTML / Svelte componets
- For Latest posts, Add the featured image to
./statuc/images/{url-slug}.jpg
thumb, be sure to use an image optimiser to cruch these down before commiting, no pre-processing is run - Push to a new branch, create a PR to create a QA URL. Once happy + code has been reviewed; merge into the
production
branch to deploy to live site
The site is hosted and setup to auto deploy to Netlify
For anything else please contact [email protected], thanks!
To run the CMS locally while developing, run npx netlify-cms-proxy-server
Then go to http://localhost:3000/admin/index.html