What have you found for these years?

2011-09-18

blog + personal wiki 計畫 (0)

之前在 buzz 的討論:

我的理想上是這樣...

1. blog 本身要像 wiki 一樣,可以用很簡單的方式互相索引,
也能很簡單地調整頁面編排,而不是像 blog 那樣單純用時間

2. 資料本身用 git 儲存,每次編輯就是一次 commit,
每篇文章就是一個 file, 三種格式,markdown or html or plain/text

3. comment 是 markdown or plain/text 格式,一樣寫入 file
假設文章是叫 home, 則產生目錄 home/post.md
home/comments-00.md, home/comments-01.md, ...
deploy 自動產生 home/index.html, 把 post 跟 comments 串起來
comments 太多的話可以再分頁 home/index-01.html

所以操作流程是這樣... 要寫新東西,就在 local 編輯,
然後 commit 後 push 至 server, 然後 deploy 產生 html
或是 local 端 deploy 然後自己再把輸出 **/*.html 上傳

發生 comment 時,則在 server 上 commit, 然後重新 deploy 該文章

也就是說,除了 static page 以外,還有有一個程式
負責接 comment 的產生。這個可以開或關,在 deploy 時決定
關閉的話就不產生 comment form, 打開時就產生

大概是這些吧.... 調整版面什麼的,自然又是另一回事了

暫定 site directory, 嗯,第一版先沒有 comment 好了
generated, hand written

archive/2011-09/index.html
archive/2011-09/index-1.html
post/hello-world/post.md
post/hello-world/index.html # e.g. murmur (42)
post/最好支援 unicode/post.md
post/最好支援 unicode/index.html
site/feed.atom # e.g. /feeds/posts/default
site/feed.rss
site/index.html # e.g. blogger.godfat.org
site/index-1.html # e.g. page 1
site/titles.html # e.g. 0rz index
tag/程式/index.html
tag/程式/index-1.html
theme/index/css.scss
theme/index/html.erb
theme/index/js.coffee
theme/post/css.scss
theme/post/html.erb
theme/post/js.coffee
config.ru

先有 static site generator 即可,第二階段是跑 application server
可以在線上修改 post 和接受 comments.

0 retries:

Post a Comment

Note: Only a member of this blog may post a comment.



All texts are licensed under CC Attribution 3.0