Skip to content

Commit

Permalink
Add code block to blog
Browse files Browse the repository at this point in the history
  • Loading branch information
dv297 committed Oct 5, 2022
1 parent a74a2a9 commit 7fa50c2
Show file tree
Hide file tree
Showing 11 changed files with 968 additions and 541 deletions.
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.next/
.next/
.idea/
1,090 changes: 594 additions & 496 deletions blog/package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
],
"dependencies": {
"@sanity/base": "^2.33.3",
"@sanity/code-input": "^2.34.0",
"@sanity/core": "^2.33.3",
"@sanity/default-layout": "^2.33.3",
"@sanity/default-login": "^2.33.3",
Expand Down
3 changes: 2 additions & 1 deletion blog/sanity.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"@sanity/base",
"@sanity/default-layout",
"@sanity/default-login",
"@sanity/desk-tool"
"@sanity/desk-tool",
"@sanity/code-input"
],
"env": {
"development": {
Expand Down
3 changes: 3 additions & 0 deletions blog/schemas/blockContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,8 @@ export default {
type: 'image',
options: { hotspot: true },
},
{
type: 'code',
},
],
};
Loading

1 comment on commit 7fa50c2

@vercel
Copy link

@vercel vercel bot commented on 7fa50c2 Oct 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

planner – ./

planner-git-main-dv297.vercel.app
planner-dv297.vercel.app
planner-nine.vercel.app

Please sign in to comment.