-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Change the components layout and animation 2. Rename the project 3. New Open Graph and SEO optimization 4. New cover
- Loading branch information
Showing
49 changed files
with
369 additions
and
361 deletions.
There are no files selected for viewing
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,49 @@ | ||
Forked from [Nobelium](https://github.com/craigary/nobelium) | ||
# Notionic | ||
|
||
# Nobelium Plus | ||
Notionic is a static blog that updates in real time, synchronizing changes to Notion pages without rebuilding the deployment. | ||
|
||
 | ||
 | ||
|
||
Demo: [https://zuolan.me](https://zuolan.me) | ||
## 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 [Craigary's Notion template](https://craigary.notion.site/adc3552cfc73442ab5048d4b1eb0079a), and share it to the public | ||
- [Fork](https://github.com/izuolan/nobelium-plus/fork) this project | ||
- **Customize `blog.config.js`** | ||
- _(Optional)_ Replace `favicon.svg`, and `favicon.ico` in `/public` folder with your own | ||
- Duplicate [Notionic template](https://izuolan.notion.site/87d5fa7c98e04cb79ef55f60989dc765), 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 | ||
- More about Nobelium Plus: [My Blog Post](https://zuolan.me/nobelium_plus) | ||
- 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) | ||
|
||
|
||
## Reference & License | ||
|
||
## 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. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
import BLOG from '@/blog.config' | ||
import Head from 'next/head' | ||
import { useRouter } from 'next/router' | ||
|
||
const SEO = ({ meta }) => { | ||
const ogImage = `https://${BLOG.ogImageGenerateHost}/api/default?logo=${ | ||
BLOG.link | ||
}/favicon.png&siteName=${encodeURIComponent( | ||
BLOG.title?.trim() | ||
)}&description=${encodeURIComponent( | ||
BLOG.description?.trim() | ||
)}&title=${encodeURIComponent( | ||
meta.title?.trim() | ||
)}&summary=${encodeURIComponent( | ||
meta.description?.trim() | ||
)}&theme=light&border=solid` | ||
|
||
const router = useRouter() | ||
const url = BLOG.path.length ? `${BLOG.link}/${BLOG.path}` : BLOG.link | ||
return ( | ||
<Head> | ||
<title>{meta.title}</title> | ||
{/* <meta content={BLOG.darkBackground} name='theme-color' /> */} | ||
<meta name='robots' content='follow, index' /> | ||
<meta charSet='UTF-8' /> | ||
{BLOG.seo.googleSiteVerification && ( | ||
<meta | ||
name='google-site-verification' | ||
content={BLOG.seo.googleSiteVerification} | ||
/> | ||
)} | ||
{BLOG.seo.keywords && ( | ||
<meta name='keywords' content={BLOG.seo.keywords.join(', ')} /> | ||
)} | ||
<meta name='description' content={meta.description} /> | ||
<meta property='og:locale' content={BLOG.lang} /> | ||
<meta property='og:title' content={meta.title} /> | ||
<meta property='og:description' content={meta.description} /> | ||
<meta | ||
property='og:url' | ||
content={meta.slug ? `${url}/${meta.slug}` : `${url}${router.asPath}`} | ||
/> | ||
<meta | ||
property='og:image' | ||
content={ogImage || BLOG.defaultCover} | ||
/> | ||
<meta property='og:type' content={meta.type} /> | ||
<meta name='twitter:card' content='summary_large_image' /> | ||
<meta name='twitter:description' content={meta.description} /> | ||
<meta name='twitter:title' content={meta.title} /> | ||
<meta | ||
name='twitter:image' | ||
content={ogImage || BLOG.defaultCover} | ||
/> | ||
{meta.type === 'article' && ( | ||
<> | ||
<meta | ||
property='article:published_time' | ||
content={meta.date || meta.createdTime} | ||
/> | ||
<meta property='article:author' content={BLOG.author} /> | ||
</> | ||
)} | ||
</Head> | ||
) | ||
} | ||
|
||
export default SEO |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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.