All Projects โ†’ selfawarestudio โ†’ sane-eleventy

selfawarestudio / sane-eleventy

Licence: other
Self Aware repo template for Sanity + Eleventy projects

Programming Languages

javascript
184084 projects - #8 most used programming language
Nunjucks
165 projects
CSS
56736 projects

sane-eleventy Prerequisite Prerequisite

Repo template for Sanity + Eleventy projects at Self Aware

๐Ÿ“– About

  • Templates are authored in the templates directory using any template language supported by eleventy (Nunjucks by default)
  • Eleventy global data files live in data.
  • Styles are authored using Tailwind and the entry point lives in styles. We always leverage Tailwind utilities before resorting to adding custom styles.
  • JavaScript lives in scripts
  • Place any static files in the public folder
  • Netlify serverless functions are authored in api
  • Place any eleventy related utilities in lib
  • Sanity Studio lives in the studio directory

โœจ Install

# Install Yarn
npm i -g yarn

# Install project dependencies using yarn
yarn

# Install Sanity Studio dependencies using yarn
cd studio && yarn

๐Ÿ‘ฉ๐Ÿปโ€๐Ÿ’ป Usage

To set up with Sanity, you will need to set your Sanity projectId and dataset in two places:

  1. studio/sanity.json
  2. lib/sanity.js

Development

# Start Netlify dev server
yarn dev

# Start Sanity dev server
cd studio && yarn start

Production

# Build front-end for production
yarn build

Deployment

Deploy the front-end using Netlify

# Deploy Sanity Studio
cd studio && yarn deploy

๐Ÿ–ผ๏ธ Showcase

The following sites are powered by sane-eleventy:

๐Ÿ’ก Inspiration

Thanks to sane-shopify for the name inspiration ๐Ÿ™‚

๐Ÿงพ License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].