Peter Cai
d78ef4fbb8
theme: default: get rid of global text-shadow
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
e1033ff0b3
support adding description meta tag to pages
...
using the page context
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
ae525c3a07
theme: default: support overriding itte page path per-post
3 years ago
Peter Cai
b03a25d82a
theme: default: support disabling itte for individual posts
...
via per-post theme config
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
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
e4421fc70e
theme: fix code block positioning
3 years ago
Peter Cai
6555bf4c56
theme: style quoted text
3 years ago
Peter Cai
ff235b1e90
theme: style inline code elements
3 years ago
Peter Cai
43f005fd72
theme: re-format css
3 years ago
Peter Cai
397596d269
theme: style .hljs code blocks better
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
90ef03daaa
theme: remove text-shadow on mobile
...
performance is terrible on some mobile browsers
3 years ago
Peter Cai
f143deb7da
theme: kill fixed background
...
the performance is poor on mobile
3 years ago
Peter Cai
9077e10876
theme: support defining target=_blank in theme_config
...
add "target": "_blank" to the JSON
3 years ago
Peter Cai
f45bd92258
theme: polish modal dialog
3 years ago
Peter Cai
38ba17019a
theme: format style
3 years ago
Peter Cai
87b332ccd2
theme: add modal to view large image
3 years ago
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
3 years ago
Peter Cai
1c6fa0ec7d
theme: fix img width
...
the width of image should take padding into account
3 years ago
Peter Cai
4cd4f72e25
theme: style: make .content and .post-list look the same
3 years ago
Peter Cai
f55cdf9897
theme: add mobile support
3 years ago
Peter Cai
48dd6cbabc
theme: style: unify styling of headings
3 years ago
Peter Cai
9b018b559d
implement automatic anchor generation for headings
3 years ago
Peter Cai
292b204262
theme: hide overflow-x
3 years ago
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.
3 years ago
Peter Cai
e8fdba132b
theme: style scrollbar
3 years ago
Peter Cai
269d2ad9a9
theme: show progress bar before navigating to another page
3 years ago
Peter Cai
caa6775d65
theme: add loading progressbar
...
do not show page until at least the stylesheet is loaded
3 years ago
Peter Cai
bbcb48beeb
implement post page rendering
3 years ago
Peter Cai
1110a2614b
render: implement pagination
3 years ago
Peter Cai
e599007ed4
use build datetime as version string on static resources
3 years ago
Peter Cai
150940cd8c
add template and implement rendering
3 years ago