├── .env.test ├── .github └── workflows │ ├── ci.yml │ └── prettier.yml ├── .gitignore ├── .npmrc ├── .sanity-template ├── README.md ├── assets │ ├── blog-preview.jpg │ ├── preview-image.jpg │ └── studio-preview.jpg ├── data │ └── production.tar.gz └── manifest.json ├── .vercelignore ├── README.md ├── components ├── alert.js ├── avatar.js ├── comments.js ├── container.js ├── cover-image.js ├── date.js ├── footer.js ├── form.js ├── header.js ├── hero-post.js ├── intro.js ├── layout.js ├── markdown-styles.module.css ├── meta.js ├── more-stories.js ├── post-body.js ├── post-header.js ├── post-preview.js ├── post-title.js └── section-separator.js ├── lib ├── api.js ├── constants.js └── sanity.js ├── next.config.js ├── package.json ├── pages ├── _app.js ├── _document.js ├── api │ ├── createComment.js │ ├── exit-preview.js │ └── preview.js ├── index.js └── posts │ └── [slug].js ├── postcss.config.js ├── renovate.json ├── studio ├── .gitignore ├── README.md ├── config │ ├── .checksums │ └── @sanity │ │ ├── data-aspects.json │ │ ├── default-layout.json │ │ ├── default-login.json │ │ ├── form-builder.json │ │ └── vision.json ├── package.json ├── plugins │ └── .gitkeep ├── sanity.json ├── schemas │ ├── author.js │ ├── blockContent.js │ ├── category.js │ ├── comment.js │ ├── post.js │ └── schema.js ├── static │ ├── .gitkeep │ └── favicon.ico ├── tsconfig.json └── yarn.lock ├── styles └── index.css ├── tailwind.config.js └── vercel.json /.env.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/.env.test -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/prettier.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/.github/workflows/prettier.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | legacy-peer-deps=true -------------------------------------------------------------------------------- /.sanity-template/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/.sanity-template/README.md -------------------------------------------------------------------------------- /.sanity-template/assets/blog-preview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/.sanity-template/assets/blog-preview.jpg -------------------------------------------------------------------------------- /.sanity-template/assets/preview-image.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/.sanity-template/assets/preview-image.jpg -------------------------------------------------------------------------------- /.sanity-template/assets/studio-preview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/.sanity-template/assets/studio-preview.jpg -------------------------------------------------------------------------------- /.sanity-template/data/production.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/.sanity-template/data/production.tar.gz -------------------------------------------------------------------------------- /.sanity-template/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/.sanity-template/manifest.json -------------------------------------------------------------------------------- /.vercelignore: -------------------------------------------------------------------------------- 1 | .github/renovate.json5 2 | .sanity-template -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/README.md -------------------------------------------------------------------------------- /components/alert.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/components/alert.js -------------------------------------------------------------------------------- /components/avatar.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/components/avatar.js -------------------------------------------------------------------------------- /components/comments.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/components/comments.js -------------------------------------------------------------------------------- /components/container.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/components/container.js -------------------------------------------------------------------------------- /components/cover-image.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/components/cover-image.js -------------------------------------------------------------------------------- /components/date.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/components/date.js -------------------------------------------------------------------------------- /components/footer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/components/footer.js -------------------------------------------------------------------------------- /components/form.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/components/form.js -------------------------------------------------------------------------------- /components/header.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/components/header.js -------------------------------------------------------------------------------- /components/hero-post.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/components/hero-post.js -------------------------------------------------------------------------------- /components/intro.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/components/intro.js -------------------------------------------------------------------------------- /components/layout.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/components/layout.js -------------------------------------------------------------------------------- /components/markdown-styles.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/components/markdown-styles.module.css -------------------------------------------------------------------------------- /components/meta.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/components/meta.js -------------------------------------------------------------------------------- /components/more-stories.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/components/more-stories.js -------------------------------------------------------------------------------- /components/post-body.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/components/post-body.js -------------------------------------------------------------------------------- /components/post-header.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/components/post-header.js -------------------------------------------------------------------------------- /components/post-preview.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/components/post-preview.js -------------------------------------------------------------------------------- /components/post-title.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/components/post-title.js -------------------------------------------------------------------------------- /components/section-separator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/components/section-separator.js -------------------------------------------------------------------------------- /lib/api.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/lib/api.js -------------------------------------------------------------------------------- /lib/constants.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/lib/constants.js -------------------------------------------------------------------------------- /lib/sanity.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/lib/sanity.js -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/package.json -------------------------------------------------------------------------------- /pages/_app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/pages/_app.js -------------------------------------------------------------------------------- /pages/_document.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/pages/_document.js -------------------------------------------------------------------------------- /pages/api/createComment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/pages/api/createComment.js -------------------------------------------------------------------------------- /pages/api/exit-preview.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/pages/api/exit-preview.js -------------------------------------------------------------------------------- /pages/api/preview.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/pages/api/preview.js -------------------------------------------------------------------------------- /pages/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/pages/index.js -------------------------------------------------------------------------------- /pages/posts/[slug].js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/pages/posts/[slug].js -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/postcss.config.js -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/renovate.json -------------------------------------------------------------------------------- /studio/.gitignore: -------------------------------------------------------------------------------- 1 | .env.* 2 | .env -------------------------------------------------------------------------------- /studio/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/studio/README.md -------------------------------------------------------------------------------- /studio/config/.checksums: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/studio/config/.checksums -------------------------------------------------------------------------------- /studio/config/@sanity/data-aspects.json: -------------------------------------------------------------------------------- 1 | { 2 | "listOptions": {} 3 | } 4 | -------------------------------------------------------------------------------- /studio/config/@sanity/default-layout.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/studio/config/@sanity/default-layout.json -------------------------------------------------------------------------------- /studio/config/@sanity/default-login.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/studio/config/@sanity/default-login.json -------------------------------------------------------------------------------- /studio/config/@sanity/form-builder.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/studio/config/@sanity/form-builder.json -------------------------------------------------------------------------------- /studio/config/@sanity/vision.json: -------------------------------------------------------------------------------- 1 | { 2 | "defaultApiVersion": "2021-10-21" 3 | } 4 | -------------------------------------------------------------------------------- /studio/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/studio/package.json -------------------------------------------------------------------------------- /studio/plugins/.gitkeep: -------------------------------------------------------------------------------- 1 | User-specific packages can be placed here 2 | -------------------------------------------------------------------------------- /studio/sanity.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/studio/sanity.json -------------------------------------------------------------------------------- /studio/schemas/author.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/studio/schemas/author.js -------------------------------------------------------------------------------- /studio/schemas/blockContent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/studio/schemas/blockContent.js -------------------------------------------------------------------------------- /studio/schemas/category.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/studio/schemas/category.js -------------------------------------------------------------------------------- /studio/schemas/comment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/studio/schemas/comment.js -------------------------------------------------------------------------------- /studio/schemas/post.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/studio/schemas/post.js -------------------------------------------------------------------------------- /studio/schemas/schema.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/studio/schemas/schema.js -------------------------------------------------------------------------------- /studio/static/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/studio/static/.gitkeep -------------------------------------------------------------------------------- /studio/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/studio/static/favicon.ico -------------------------------------------------------------------------------- /studio/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/studio/tsconfig.json -------------------------------------------------------------------------------- /studio/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/studio/yarn.lock -------------------------------------------------------------------------------- /styles/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/styles/index.css -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /vercel.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanity-io/sanity-template-nextjs-blog-comments/HEAD/vercel.json --------------------------------------------------------------------------------