Commit Graph

46 Commits (24f8b36afff519514686afa01fb8fc080f4ff6f0)

Author SHA1 Message Date
Peter Cai d78ef4fbb8
theme: default: get rid of global text-shadow 2020-04-17 13:43:47 +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 e1033ff0b3
support adding description meta tag to pages
using the page context
2020-04-15 15:21:51 +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 ae525c3a07
theme: default: support overriding itte page path per-post 2020-04-14 21:24:49 +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 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 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 e4421fc70e
theme: fix code block positioning 2020-04-14 15:45:40 +08:00
Peter Cai 6555bf4c56
theme: style quoted text 2020-04-12 18:06:23 +08:00
Peter Cai ff235b1e90
theme: style inline code elements 2020-04-12 17:55:56 +08:00
Peter Cai 43f005fd72
theme: re-format css 2020-04-12 17:36:51 +08:00
Peter Cai 397596d269
theme: style .hljs code blocks better 2020-04-12 17:36:33 +08:00
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
2020-04-12 16:53:51 +08:00
Peter Cai 1f2fee8341
implement RSS feed
as an alternative common template for home page
2020-04-12 14:28:26 +08:00
Peter Cai 90ef03daaa
theme: remove text-shadow on mobile
performance is terrible on some mobile browsers
2020-04-12 08:28:12 +08:00
Peter Cai f143deb7da
theme: kill fixed background
the performance is poor on mobile
2020-04-12 08:24:35 +08:00
Peter Cai 9077e10876
theme: support defining target=_blank in theme_config
add "target": "_blank" to the JSON
2020-04-11 21:01:23 +08:00
Peter Cai f45bd92258
theme: polish modal dialog 2020-04-11 20:57:46 +08:00
Peter Cai 38ba17019a
theme: format style 2020-04-11 20:46:04 +08:00
Peter Cai 87b332ccd2
theme: add modal to view large image 2020-04-11 20:45:07 +08:00
Peter Cai 2f2611f498
theme: style: make position sticky work correctly
Parents cannot have `overflow: hidden`.

Also removed position absolute for the wrapper and instead rely on
inline-block for horizontal center
2020-04-11 20:27:09 +08:00
Peter Cai 1c6fa0ec7d
theme: fix img width
the width of image should take padding into account
2020-04-11 20:10:27 +08:00
Peter Cai 4cd4f72e25
theme: style: make .content and .post-list look the same 2020-04-11 19:57:44 +08:00
Peter Cai f55cdf9897
theme: add mobile support 2020-04-11 19:50:51 +08:00
Peter Cai 48dd6cbabc
theme: style: unify styling of headings 2020-04-11 19:04:13 +08:00
Peter Cai 9b018b559d
implement automatic anchor generation for headings 2020-04-11 19:01:30 +08:00
Peter Cai 292b204262
theme: hide overflow-x 2020-04-11 09:22:26 +08:00
Peter Cai d8f05bad95
render: remove dummy argument in handlebars helper
turns out they just can't handle `||` -- adding a space in between fixes
the problem.
2020-04-11 09:18:02 +08:00
Peter Cai e8fdba132b
theme: style scrollbar 2020-04-11 09:15:53 +08:00
Peter Cai 269d2ad9a9
theme: show progress bar before navigating to another page 2020-04-11 09:12:01 +08:00
Peter Cai caa6775d65
theme: add loading progressbar
do not show page until at least the stylesheet is loaded
2020-04-10 21:27:05 +08:00
Peter Cai bbcb48beeb
implement post page rendering 2020-04-10 21:10:30 +08:00
Peter Cai 1110a2614b
render: implement pagination 2020-04-10 20:57:53 +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