Commit Graph

122 Commits (24f8b36afff519514686afa01fb8fc080f4ff6f0)

Author SHA1 Message Date
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.
2020-06-25 19:49:38 +08:00
Peter Cai d6df7147bc
README: switch mailing list to SourceHut 2020-06-19 20:03:49 +08:00
Peter Cai e32bd00fce
README: update repository and contact information. 2020-06-19 15:44:50 +08:00
Peter Cai d3745ae188
add MIT LICENSE 2020-04-18 18:21:41 +08:00
Peter Cai a3c9217acd
README: add warning on consistency 2020-04-18 18:16:24 +08:00
Peter Cai 6763418fce
README: remove some warning 2020-04-18 18:14:02 +08:00
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 ffb4c24292
get rid of dead code warnings 2020-04-18 16:49:32 +08:00
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.
2020-04-18 16:46:11 +08:00
Peter Cai e0d8c94986
blog: remove useless lifetime parameter 2020-04-18 16:36:36 +08:00
Peter Cai 10339daf09
blog: refactor: rewrite more transform as iterator operations 2020-04-18 16:35:38 +08:00
Peter Cai 994da996bc
blog: refactor: apply highlight via idomatic Iterator operations 2020-04-18 16:05:34 +08:00
Peter Cai 8fcb7fef17
README: warn about error when no article available 2020-04-17 13:44:47 +08:00
Peter Cai d78ef4fbb8
theme: default: get rid of global text-shadow 2020-04-17 13:43:47 +08:00
Peter Cai 81fda6e1c8
add a preferred_url option 2020-04-16 16:21:21 +08:00
Peter Cai a9e3490478
sn: implement the Delete action 2020-04-16 15:59:42 +08:00
Peter Cai bcd52491c9
theme: always put the progress bar on top 2020-04-16 14:38:48 +08:00
Peter Cai 707bfca75d
theme: format css 2020-04-15 21:37:24 +08:00
Peter Cai f75e6d5720
theme: style tables 2020-04-15 21:37:13 +08:00
Peter Cai 63d966f019
theme: make paragraphs in footnotes not on new lines 2020-04-15 21:10:02 +08:00
Peter Cai 3a1520f0db
blog: take non-labelled code blocks into account 2020-04-15 21:06:30 +08:00
Peter Cai 5f790e4b37
blog: make links open in new tab by default 2020-04-15 20:58:54 +08:00
Peter Cai 4bf676419d
blog: use RegExp from js_sys to handle headings and code blocks 2020-04-15 19:28:52 +08:00
Peter Cai e1033ff0b3
support adding description meta tag to pages
using the page context
2020-04-15 15:21:51 +08:00
Peter Cai 15f78ea632
lib: get rid of the "hello world" endpoint 2020-04-15 14:28:28 +08:00
Peter Cai 2064f36b14
lib: remove TODO for page rendering 2020-04-15 14:02:53 +08:00
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.
2020-04-15 08:55:15 +08:00
Peter Cai c1304581e6
README: document per-post theme_config 2020-04-14 21:28:05 +08:00
Peter Cai ae525c3a07
theme: default: support overriding itte page path per-post 2020-04-14 21:24:49 +08:00
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.
2020-04-14 21:17:32 +08:00
Peter Cai b03a25d82a
theme: default: support disabling itte for individual posts
via per-post theme config
2020-04-14 21:11:39 +08:00
Peter Cai d6b479ec15
support per-post theme_config in custom metadata 2020-04-14 21:11:21 +08:00
Peter Cai 1183250d3b
theme: default: fix all margins in single-post page for good 2020-04-14 20:53:05 +08:00
Peter Cai 2b8f97a1af
theme: add support for itte as the comment system 2020-04-14 20:37:44 +08:00
Peter Cai 800a39956a
render: add pathname to the page context
needed when we need to insert a comment system
2020-04-14 20:36:00 +08:00
Peter Cai 62555714e6
theme: add footer on mobile layout 2020-04-14 19:55:41 +08:00
Peter Cai ecc3e4bed8
theme: css: improve comments 2020-04-14 17:00:02 +08:00
Peter Cai 5852d86a82
theme: style links also in single-post pages 2020-04-14 16:59:43 +08:00
Peter Cai 183ed102e0
theme: animate toc item "current" state too 2020-04-14 16:52:31 +08:00
Peter Cai bce6c3e9b4
theme: animate the appearance of ToC too 2020-04-14 16:50:47 +08:00
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.
2020-04-14 16:47:27 +08:00
Peter Cai 0dbd4cbf08
theme: use fixed position for loading progress bar 2020-04-14 16:06:40 +08:00
Peter Cai f7d93bf799
build.rs: re-run after any file inside directories have changed
this is needed to regenerate the build timestamp properly
2020-04-14 16:00:07 +08:00
Peter Cai e4421fc70e
theme: fix code block positioning 2020-04-14 15:45:40 +08:00
Peter Cai daccf6c142
add support for hard-coded extra proxied resources 2020-04-13 18:52:16 +08:00
Peter Cai 9bd347e1e5
README: document cache for themes 2020-04-13 18:14:34 +08:00
Peter Cai 44ca2f6de3
support cache-control for static resources 2020-04-13 18:10:34 +08:00
Peter Cai e6df5544f4
README: add FAQ 2020-04-13 17:02:45 +08:00
Peter Cai f4187714f5
README: add more about standard notes integration 2020-04-13 16:53:16 +08:00
Peter Cai a86c86835b
README: clarify how to integrate with S3
you have to write code yourself...
2020-04-13 16:51:29 +08:00