-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
2,379 additions
and
755 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1 @@ | ||
# Notionic | ||
|
||
Notionic is a static blog that updates in real time, synchronizing changes to Notion pages without rebuilding the deployment. | ||
|
||
 | ||
|
||
## Demo | ||
|
||
- Notionic: [https://notionic.vercel.app](https://notionic.vercel.app) | ||
- My Blog: [https://zuolan.me](https://zuolan.me) | ||
|
||
## Features | ||
|
||
- Incremental static regeneration | ||
- Outline | ||
- Theme switch | ||
- Multi-language | ||
- Native style comments | ||
- Loading and transition animation | ||
- Block page support | ||
- SEO and Open Graph optimization | ||
- Newsletter support | ||
- Contact Form | ||
- Telegram bot integration | ||
|
||
## Quick Start | ||
|
||
- Duplicate [Notionic template](https://zuolan.notion.site/dea4de63b4aa4efb87174591936f0bde), and share it to the public | ||
- [Fork](https://github.com/izuolan/notionic/fork) this project | ||
- **Customize `blog.config.js` file** | ||
- _(Optional)_ Replace `favicon.svg/png/ico` in `public` folder with your own | ||
- Modify `lib/lang.js` with your self introduction | ||
- Deploy on [Vercel](https://vercel.com), set following environment variables: | ||
- `NOTION_PAGE_ID` (Required): The ID of the Notion page you previously shared to the web, usually has 32 digits after your workspace address | ||
- eg: `https://your-username.notion.site/<NOTION_PAGE_ID>?v=<view_id>` | ||
|
||
More details about Notionic deployment: | ||
|
||
- [English](https://zuolan.me/en/notionic_en) | ||
- [中文](https://zuolan.me/notionic) | ||
|
||
## Development | ||
|
||
```bash | ||
# Init | ||
pnpm install | ||
# Develop | ||
./dev.sh | ||
# Build & Serve | ||
pnpm build | ||
pnpm start | ||
``` | ||
|
||
## Reference & License | ||
|
||
- [Notion-X](https://github.com/NotionX/react-notion-x) | ||
- [Nobelium](https://github.com/craigary/nobelium) | ||
- [NotionNext](https://github.com/tangly1024/NotionNext) | ||
|
||
The MIT License. | ||
# 我的博客 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,19 @@ | ||
// https://react-svgr.com/playground/ | ||
import * as React from 'react' | ||
import Image from 'next/image' | ||
import svg from '@/public/favicon.svg' | ||
|
||
const Logo = (props) => ( | ||
<svg | ||
xmlns='http://www.w3.org/2000/svg' | ||
width='24' | ||
height='24' | ||
viewBox='0 0 100 100' | ||
<Image | ||
{...props} | ||
src={svg} | ||
style={{ | ||
opacity: 1 | ||
height: '3rem', | ||
width: '3rem', | ||
borderRadius: '50%' | ||
}} | ||
{...props} | ||
> | ||
<g transform='translate(0.000000,100) scale(0.080000,-0.080000)'> | ||
<path d='M762 1203 c-6 -15 -13 -46 -17 -68 -4 -22 -13 -49 -20 -61 -15 -23 -122 -69 -257 -109 -49 -14 -88 -28 -88 -29 0 -2 33 -20 73 -40 49 -24 87 -36 115 -36 28 0 42 -4 42 -13 0 -34 -295 -517 -390 -639 -40 -52 -4 -28 86 56 49 46 105 109 124 141 19 31 64 98 100 148 77 108 125 186 173 283 20 39 46 78 59 86 13 8 69 34 126 58 107 45 118 57 110 111 -3 21 -10 25 -78 34 l-75 10 -5 45 c-5 42 -7 45 -36 48 -26 3 -33 -1 -42 -25z' /> | ||
<path d='M754 616 c-40 -19 -88 -39 -108 -46 -43 -14 -45 -30 -7 -72 25 -28 33 -31 80 -30 39 1 54 -3 58 -15 7 -18 -30 -140 -58 -192 -36 -67 6 -93 135 -84 l86 6 0 -26 c0 -14 -4 -37 -10 -51 -5 -14 -8 -26 -6 -26 7 0 110 68 129 85 11 10 17 30 17 60 0 62 -22 70 -150 57 -52 -5 -98 -6 -103 -2 -4 3 3 31 16 61 13 30 32 78 42 108 10 30 28 70 41 89 26 38 30 63 14 93 -17 31 -91 25 -176 -15z' /> | ||
</g> | ||
</svg> | ||
alt='logo' | ||
/> | ||
) | ||
|
||
export default Logo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.