Peter Cai
fe9f0c187e
theme: default: update link to git repo
3 years ago
Peter Cai
f1a14aca0b
chore: upgrade Cargo dependencies
3 years ago
Peter Cai
e8574ae32d
chore: update Cargo.lock
3 years ago
Peter Cai
24f8b36aff
chore: update Node dependencies
...
* and get rid of Taobao NPM registry.
* I used it because I was blocked from official repo by npmjs for
whatever reason.
3 years ago
Peter Cai
d6df7147bc
README: switch mailing list to SourceHut
3 years ago
Peter Cai
e32bd00fce
README: update repository and contact information.
3 years ago
Peter Cai
d3745ae188
add MIT LICENSE
3 years ago
Peter Cai
a3c9217acd
README: add warning on consistency
3 years ago
Peter Cai
6763418fce
README: remove some warning
3 years ago
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
5c2615a6cb
blog: get rid of Vec allocation in render for good
...
just spawn the cache whitelist task onto the js ev loop and don't care
about it; the write only need to succeed once and that normally happens
at the very first time.
3 years ago
Peter Cai
e0d8c94986
blog: remove useless lifetime parameter
3 years ago
Peter Cai
10339daf09
blog: refactor: rewrite more transform as iterator operations
3 years ago
Peter Cai
994da996bc
blog: refactor: apply highlight via idomatic Iterator operations
3 years ago
Peter Cai
8fcb7fef17
README: warn about error when no article available
3 years ago
Peter Cai
d78ef4fbb8
theme: default: get rid of global text-shadow
3 years ago
Peter Cai
81fda6e1c8
add a preferred_url option
3 years ago
Peter Cai
a9e3490478
sn: implement the Delete action
3 years ago
Peter Cai
bcd52491c9
theme: always put the progress bar on top
3 years ago
Peter Cai
707bfca75d
theme: format css
3 years ago
Peter Cai
f75e6d5720
theme: style tables
3 years ago
Peter Cai
63d966f019
theme: make paragraphs in footnotes not on new lines
3 years ago
Peter Cai
3a1520f0db
blog: take non-labelled code blocks into account
3 years ago
Peter Cai
5f790e4b37
blog: make links open in new tab by default
3 years ago
Peter Cai
4bf676419d
blog: use RegExp from js_sys to handle headings and code blocks
3 years ago
Peter Cai
e1033ff0b3
support adding description meta tag to pages
...
using the page context
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
9ebcbd1d59
theme: default: give itte-thread its own block context
...
because it may contain `float` and `clear` elements. Those will intefere
with our `float: left` sidebar.
3 years ago
Peter Cai
c1304581e6
README: document per-post theme_config
3 years ago
Peter Cai
ae525c3a07
theme: default: support overriding itte page path per-post
3 years ago
Peter Cai
1ddd586694
sn: return error instead of fail silently for malformed metadata
...
protect people from accidentally submitting malformed header and then
making things public on accident.
3 years ago
Peter Cai
b03a25d82a
theme: default: support disabling itte for individual posts
...
via per-post theme config
3 years ago
Peter Cai
d6b479ec15
support per-post theme_config in custom metadata
3 years ago
Peter Cai
1183250d3b
theme: default: fix all margins in single-post page for good
3 years ago
Peter Cai
2b8f97a1af
theme: add support for itte as the comment system
3 years ago
Peter Cai
800a39956a
render: add pathname to the page context
...
needed when we need to insert a comment system
3 years ago
Peter Cai
62555714e6
theme: add footer on mobile layout
3 years ago
Peter Cai
ecc3e4bed8
theme: css: improve comments
3 years ago
Peter Cai
5852d86a82
theme: style links also in single-post pages
3 years ago
Peter Cai
183ed102e0
theme: animate toc item "current" state too
3 years ago
Peter Cai
bce6c3e9b4
theme: animate the appearance of ToC too
3 years ago
Peter Cai
df6a1affdb
theme: animate page entrance using css animation instead of transition
...
the transition trick relies on the browser loading the css after the
html, which may not be true.
3 years ago
Peter Cai
0dbd4cbf08
theme: use fixed position for loading progress bar
3 years ago
Peter Cai
f7d93bf799
build.rs: re-run after any file inside directories have changed
...
this is needed to regenerate the build timestamp properly
3 years ago
Peter Cai
e4421fc70e
theme: fix code block positioning
3 years ago
Peter Cai
daccf6c142
add support for hard-coded extra proxied resources
3 years ago
Peter Cai
9bd347e1e5
README: document cache for themes
3 years ago
Peter Cai
44ca2f6de3
support cache-control for static resources
3 years ago