用 Clojure 写了个玩具 算是乞丐版的 Jekyll

2019-04-29 15:01:44 +08:00
 qwz

你想要的 Jekyll 特性可能都没有

repo link

中文社区讨论 Clojure 的内容不太多 我来添一份力

直接帖 README

puck

name from Puck(パック Pakku)

What is this

A ~~Clojure toy project~~ useful(to me), as-simple-as-posibble markdown blogging tool.

Features

Things may have

Get start

Directory

----
   |
   |-- assets       css, font, favicon etc.
   |
   |-- conf.edn     configration
   |
   |-- files        zip, tar.gz etc.
   |
   |-- pages        md files, e.g. homemd 404md
   |
   |-- posts        md files, e.g. 2018-11-01-foo-barmd
   |
   |-- snippets     html files, e.g. head.html post-list.html
   |
   |-- templates    html files, e.g. post.html page.html
   |
   |-- www          HTTP server root
     |
     |-- pages      html files, pages/homemd > pages/home.html
     |
     |-- posts      html files, posts/2018-11-01-foo-barmd > posts/2018-11-01-foo-bar.html

URL

/posts          posts, e.g. /posts/2018-11-01-foo-bar.html by dir/www/posts/2018-11-01-foo-bar.html

/               index, by dir/www/pages/home.html

/404.html       not-found page, by dir/www/pages/404.html

CLI

Credits

1666 次点击
所在节点    分享创造
2 条回复
qwz
2019-04-29 16:13:31 +08:00
...
url 里的 ";" 字符被转换了

再帖以下吧 https://repo.yiwan.me/?p=puck;a=summary
jingxujuan
2019-05-16 11:56:37 +08:00
赞!

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/559757

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX