先丢 demo:
https://staticmotion.zenan.ch 和 https://blog.zenan.ch
GitHub:
https://github.com/alanzchen/static-motion
啥都不需要,你甚至都不需要 clone 到本地。只需要一个 Github 账号!
当然,还有一些非常方便的自定义选项( Google Analytics + Disqus ),详见: https://staticmotion.zenan.ch/customization
(懒得翻译了,反正估计看名字看得懂)
See conf.py for example.
ACCESS_TOKEN: fill your Netlify access token.
(Remember to secure it!)SITE_ID: The "API ID" of your Netlify site.index: The URL of your index page on Notion.so.title_sep: Your title separator. No space around!description: Your site description. "Remember to quote your string!"base_url: Your site URL. (must end with /)twitter: Your twitter ID.
Declare an empty string if you do not want it.build_mobile: Will build a mobile version of your entire site at /m/ if this option present.这其实是一个非常非典型的「生成器」。
Static Motion = Selenium + Chrome + Beautiful Soup
由 Travis CI 自动抓取并部署到 Netlify 上。
由于本质上是爬虫,并进行一些非常 dirty 的处理,Static Motion 可能因为 Notion.so 界面的改变而随时 break down。不建议使用在生产环境中,个人博客和主页可以考虑折腾一下。
好用啊!排版非常自由,组建丰富,编辑体验好……
欢迎 Fork and merge!
附: 前情提要 /t/372177
2
goldenlove 2017 年 8 月 8 日
会玩,已 star。
不过貌似 Notion 本身的共享链接已经够用了... |
3
discrete OP @goldenlove 分享笔记是够用了,但是不适合变成独立网站。
|
4
S1ahs3r 2017 年 8 月 8 日
Cool....最近在把笔记转移到 Notion,看到大家都在用突然有信心以后付费了...
|
5
JimmyLv 2017 年 8 月 8 日
|
6
rakume 2017 年 8 月 8 日
Notion 贼棒,看到第一眼就爱上;学生免费什么的,也是超赞的
|
9
zouyun5152 2017 年 8 月 11 日
不错是不错,但是非程序员还真不知道咋用,尴尬… Notion 一直在用
|