Peter Cai
eeb13b44e9
blog: use ExtendableEvent.wait_until()
...
we need to guarantee the promise will not be cancelled
3 years ago
Peter Cai
ffb4c24292
get rid of dead code warnings
3 years ago
Peter Cai
15f78ea632
lib: get rid of the "hello world" endpoint
3 years ago
Peter Cai
2064f36b14
lib: remove TODO for page rendering
3 years ago
Peter Cai
44ca2f6de3
support cache-control for static resources
3 years ago
Peter Cai
e727bce188
add support for hard-coded redirects in config.json
3 years ago
Peter Cai
f519152465
integrate hljs into backend to provide code highlighting
...
1. Use hljs and wasm_bindgen to parse code
2. Allow the final user to choose what language to include by generating
inline_js in build.rs for #[wasm_bindgen] (a thin wrapper around the
raw hljs to load whatever is needed by config.json statically rather
than dynamically)
3. Integrate the monokai color scheme into our default theme
3 years ago
Peter Cai
1f2fee8341
implement RSS feed
...
as an alternative common template for home page
3 years ago
Peter Cai
bbcb48beeb
implement post page rendering
3 years ago
Peter Cai
1110a2614b
render: implement pagination
3 years ago
Peter Cai
150940cd8c
add template and implement rendering
3 years ago
Peter Cai
b2d6678405
sanitize proxied remote content response
...
re-construct the Response object to make sure no strange headers slip
into our own response.
3 years ago
Peter Cai
d8edb51d6a
add explanation why we need a custom binding
3 years ago
Peter Cai
4474769004
proxy remote media inserted in posts
...
To protect user privacy and speed up page loading
3 years ago
Peter Cai
8ba086a9ec
implement Markdown rendering
3 years ago
Peter Cai
fe22944cb4
add some no-cache headers
3 years ago
Peter Cai
cd8f761fcf
implement showing blog
...
no rendering yet
3 years ago
Peter Cai
7de1212993
also remove post from list if unlist is set
3 years ago
Peter Cai
09081dd1d7
use macro to generate headers
3 years ago
Peter Cai
243a64b7b9
implement basic KV binding
3 years ago
Peter Cai
0547cdd0c3
make internal_err an extension trait
3 years ago
Peter Cai
5467fa6e6d
add internal_err! macro to replace some unwrap()
3 years ago
Peter Cai
a2fa677514
use lazy_static for config
3 years ago
Peter Cai
2a8ed95488
initial impl for Standard Notes Actions
3 years ago
Peter Cai
9e4bf24377
initial commit
3 years ago