Commit Graph

15 Commits

Author SHA1 Message Date
Peter Cai eeb13b44e9
blog: use ExtendableEvent.wait_until()
we need to guarantee the promise will not be cancelled
2020-04-18 18:07:16 +08:00
Peter Cai 2ee88e11b0
drop rbtag and use our own hand-rolled implementation
because we need to update build timestamp each time anything related to
rendering is changed. The rbtag crate only supports git commit times.

Also, reproducible build isn't exactly a goal of this project.
2020-04-12 17:25:55 +08:00
Peter Cai 84ff757700
Cargo.toml: flip real optimizations on
Since I don't expect to pull in any more significant dependency, and we
are far from running out of the 1MB compressed limitation of code size,
we should be perfectly fine flipping this on instead of sticking with
optimizing for size
2020-04-12 10:46:05 +08:00
Peter Cai f36bfb7afa
Cargo.toml: define default build target 2020-04-11 10:11:58 +08:00
Peter Cai 23d899dd0e
support build-time theme selection via 2020-04-11 09:52:45 +08:00
Peter Cai e599007ed4
use build datetime as version string on static resources 2020-04-10 20:42:55 +08:00
Peter Cai 150940cd8c
add template and implement rendering 2020-04-10 20:38:53 +08:00
Peter Cai b2d6678405
sanitize proxied remote content response
re-construct the Response object to make sure no strange headers slip
into our own response.
2020-04-09 20:11:48 +08:00
Peter Cai 4474769004
proxy remote media inserted in posts
To protect user privacy and speed up page loading
2020-04-09 19:15:45 +08:00
Peter Cai 8ba086a9ec
implement Markdown rendering 2020-04-09 14:47:46 +08:00
Peter Cai 243a64b7b9
implement basic KV binding 2020-04-07 20:54:04 +08:00
Peter Cai 7c102af848
cargo: enable LTO 2020-04-07 16:32:44 +08:00
Peter Cai 37d4e0e8b3
cargo: enable wee_alloc 2020-04-07 16:10:11 +08:00
Peter Cai 2a8ed95488
initial impl for Standard Notes Actions 2020-04-07 16:10:08 +08:00
Peter Cai 9e4bf24377
initial commit 2020-04-07 16:10:01 +08:00