GithubHelp home page GithubHelp logo

herohoro / easy-notion-blog-02 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from otoyo/easy-notion-blog

1.0 0.0 0.0 11.23 MB

Easy to start your Notion Blog with Official API

Home Page: https://easy-notion-blog-otoyo.vercel.app/blog

License: MIT License

JavaScript 3.37% TypeScript 80.55% CSS 16.09%

easy-notion-blog-02's Introduction

English | 日本語

easy-notion-blog

GitHub stars GitHub license

easy-notion-blog-logo-2

Easy to start your blog.

You can write on your Notion.

Screenshot

Screenshot

Demo

https://easy-notion-blog-otoyo.vercel.app/blog

Users' blogs

Features

  • Very fast!
  • Write on the Notion
  • Using official API
  • Full customization

Requirements

(For your customization)

  • Node.js v14 or higher
  • Yarn
  1. Star this repo 😉
    • It makes me motivative!
  2. Duplicate the template into your Notion.
  3. Note the part of URL https://notion.so/your-account/<HERE>?v=xxxx as DATABASE_ID
    • ex) 158bd90116004cd19aca26ad88cb5c07
    • ⚠️ CAUTION: ?v=NOT_THIS_VALUE. Use ahead strings.
  4. Create an integration and note "Internal Integration Token" as NOTION_API_SECRET
  5. Share a database with your integration at the Notion database page
  6. Go to vercel.com and log-in
  7. Create new project by importing this repository otoyo/easy-notion-blog (Skip creating a team)
  8. In "Configure Project", open "Environment Variables" settings and set NOTION_API_SECRET and DATABASE_ID
  9. Your Notion Blog will be published after deploy

How to customize

Fork this repo into your GitHub account and develop.

# Install dependencies
yarn install

# Start local server at localhost:3000
yarn dev

Open http://localhost:3000 in your browser.

Entries without Published are also displayed for preview in local. But no Slug entries are not displayed.

Press Ctrl+C to stop local server in the terminal.

How to deploy to Google Cloud Run

See the wiki.

Lint & Test

yarn lint
yarn test

Optional settings

  • favicon
    • Place favicon.ico under public/ directory
  • Google Analytics 4
    • Set your tracking ID in lib/gtag.js

Twitter community

Contribution

Pull requests are welcome.


easy-notion-blog is based on ijjk/notion-blog and otoyo/notion-blog

easy-notion-blog-02's People

Contributors

dependabot[bot] avatar herohoro avatar horomi-chan avatar n0bisuke avatar nitaking avatar otoyo avatar shmn7iii avatar ymiz avatar

Stargazers

 avatar

easy-notion-blog-02's Issues

ブログの骨組みを解読したい

blog learn

  1. 自走できるように公式リファレンスをベースに要素の組み合わせる方法を整理する👉記事化
  2. 画面遷移についても整理できたらいいな👉Nextjs特有!?
  3. 外データの参照はNotionAPI公式リファレンスをもとに整理していく予定👉記事化する計画

【新たな試み】

  • code sandboxで作ってみる
     - embedしたいからbranch分けして工程を目次化する???
     - push commit分けでもいいけど....

Contributor_メモリー

ひょいなことからイラストを使ってもらえることになったので、
嬉しかったことをスクショにして残していくことにしましたヽ(=´▽`=)ノ

Brunch切り替え/ 誤爆commit修正/Brunch作成...

mastarブランチから....

git checkout -b 作成したいブランチ名

これでローカルBrunchを用意できる

public pushの時にremoteブランチをもとのmasterブランチにすればいい??

created-image

作ってPRできた画像、作ったはいいけどPRするまでもなかった画像...そんなデータをあげていく。

全imageをImageに統一したい

目標

  • サムネは余白のない(フィットした)表示にしたい。
  • 記事内imageブロックの余白を違和感ない表示にしたい。

現状

【サムネ】

  • サムネはサイズを統一して収納している
  • サムネは表示させる場所によってクラス名でサイズ変更している
  • 画面サイズによっても変更している

【記事内imageブロック】

  • 高さをいろいろ設定して余白が生まれすぎない値を探ったが縦長or横長のimageどちらかを優先するしかない

本家IssueをLINE通知させたい

目的

アルパカさんが開発に専念できるようにする。
質問に答えることで1upする。

経緯

Issueに気づけない。
数日経過してるのざら。

他_GitHub 運用Tips

Fork元とのやりとりでGitHub Issueで記録してきたからこそ便利だなと感じたことを記録しておく\(^o^)/

本家へPRする

PR用にbranchを用意して申請するとなぜか本家との差分全てのcommitが行ってしまう。
otoyo#57

「main」branchに切り替えたらそれは本家と一致したcommitだったので

  1. 申請したいcommitを追加
  2. PRタブから本家mainと分家mainとをcompereさせる
  3. PR送信

でなんとかできた。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.