Commit graph

95 commits

Author SHA1 Message Date
Cotes Chung
5c5910f1fc
fix: remove extra dual-mode images from lightbox (#1883) 2024-08-19 05:10:33 +08:00
Alexander Fuks
979f86cf64
fix: avoid caching pageviews data (#1849) 2024-07-17 23:32:48 +08:00
Cotes Chung
fbba0a4204
chore: fix typos in project files and docs 2024-07-02 08:44:07 +08:00
Cotes Chung
7ca9c59784
build(deps-dev): remove package rollup-plugin-license (#1796)
The `rollup-plugin-license` has been using too many deprecated dependencies, so it is necessary to remove it.

As an alternative, this changes uses Rollup `output.banner` to insert copyright information. Since `terser` runs after `output`, it is not possible to insert the Front Matter defining permlink for `sw.js` through the same way (Jekyll Front Matter is YAML rather than JS, which would cause errors with terser).

Therefore, _Jekyll Collection_ is now used to add permlink to `sw.js`, with the collection named `app`, and the directory placed in `_app`. This directory is not tracked by git, but it will be included when building the gem.
2024-06-05 23:51:10 +08:00
Cotes Chung
ddb48eda52
perf: lean bootstrap javascript (#1734) 2024-05-11 10:29:14 +08:00
Cotes Chung
b77767f76e
refactor: improve js module loading order 2024-04-29 03:43:33 +08:00
Cotes Chung
e0950fc973
fix: make TOC title and entries visible at the same time (#1711)
When internet connection speeds are poor, there is a chance that the title of the TOC will appear earlier than its entries, causing a visual cutoff.
2024-04-29 03:36:16 +08:00
Cotes Chung
015d5670a1
refactor: reduce custom CSS 2024-04-21 00:00:50 +08:00
Cotes Chung
fe7afa379f
perf: replace jQuery with Vanilla JS (#1681)
Also replaced `magnific-popup` with `GLightbox`
2024-04-17 06:10:01 +08:00
Cotes Chung
6b34901d94
refactor(pwa): revert to JS and Liquid mixing
The gem package won't be able to pass `/sw.min.js` to the user end
2024-02-13 23:35:32 +08:00
yeonwlee
bbbb66b489
perf: allow TOC to start at heading 3 (#1512) 2024-01-30 08:22:03 +08:00
Cotes Chung
1127c43823
feat: add pwa.cache.* option to precisely control caching (#1501) 2024-01-28 02:22:33 +08:00
Cotes Chung
753cd0499d
chore: remove console log from copy link button 2023-10-06 02:04:19 +08:00
Cotes Chung
2bc3172444
refactor: optimize LQIP loading
- add blur effect for external WebP format LQIP
- remove the timeout delay
2023-10-04 18:15:22 +08:00
Cotes Chung
e3b01636ac
refactor(core): optimize image loading
- JavaScript runs so fast that LQIP will never be detected
- Increase the running priority of image processing in posts

Enhancement for #1267
2023-09-29 05:07:03 +08:00
Cotes Chung
bf3a34d054
perf(core): replace lazysizes with browser-level lazy loading (#1267) 2023-09-27 04:44:32 +08:00
Cotes Chung
806fa3aa1a
refactor: simplify meta info 2023-09-10 20:01:29 +08:00
Cotes Chung
505e314a31
perf: refactor using semantic HTML (#1207)
Fixes #1196
2023-09-08 22:48:37 +08:00
Cotes Chung
229c2a2e2b
feat(posts): render heading 4 in TOC (#1023) 2023-09-03 20:20:14 +08:00
Cotes Chung
37c976499e
perf(ui): improve web accessibility (#447)
- Make color and contrast meets WCAG 2 AA and above
- Fixes `aria-label` on button "copy link" in posts
2023-08-02 21:08:56 +08:00
Cotes Chung
df8ff546ec
fix: the cached image is covered by shimmer (#1100) 2023-06-26 23:59:59 +08:00
Cotes Chung
c075e11a4e
Revert "fix: shimmer has the potential to cover images (#1100)"
This reverts commit 74ab6f8adc.
2023-06-26 21:54:20 +08:00
Cotes Chung
74ab6f8adc
fix: shimmer has the potential to cover images (#1100)
Resolves #1100
2023-06-24 21:23:30 +08:00
Cotes Chung
83625644ea
refactor(core): remove GA page views report (#1071)
- Google Analytics superProxy has been archived and is no longer maintained.
- Google Analytics UA end of life.

See also: https://support.google.com/analytics/answer/11583528?hl=en
2023-06-04 10:56:31 +08:00
Cotes Chung
f6bf6d0864
refactor: improve JS/HTML for button back2top (#1054)
The current "back to top" button is built by `<a>` tag, it would be more appropriate to replace it with the `<button>` tag.
2023-05-20 01:07:18 +08:00
Cotes Chung
d81f836b06
refactor: simplify basic layout (#1039)
A dynamically expanding/collapsing topbar is difficult to maintain and not very useful.
2023-05-17 01:59:34 +08:00
Cotes Chung
1967de1f1d
refactor(js): reduce function complexity 2023-05-13 07:03:15 +08:00
Cotes Chung
d9e1d84f08
refactor(deps): upgrade bootstrap from v4.6 to v5.2
- update class name of the spacing, font style, cards and toasts
- update attribute names &  tooltip usage
- remove custom smooth scroll
- syntax colors
2023-05-13 02:05:33 +08:00
Cotes Chung
97b8dfeed6
feat(ui): show preview image in home page 2023-05-13 02:05:30 +08:00
Cotes Chung
8225174cb5
fix(deps): tocbot has no initialization detection (#957)
Resolves #957
2023-03-31 05:05:33 +08:00
Cotes Chung
8b4f99c87f
fix: pageviews not updated immediately 2023-03-31 04:58:21 +08:00
Cotes Chung
02b7bd5095
feat: change TOC plugin to tocbot (#774) 2023-03-16 03:00:29 +08:00
Cotes Chung
b69d3d7edd
refactor(build): modularize JS code
- replace gulp with rollup
- remove JS output from repo
2023-03-15 21:51:37 +08:00
Cotes Chung
5c6ec9d06b
fix: css selector string escaping vulnerability (#888)
Resolves #888
2023-02-15 05:19:26 +08:00
Cotes Chung
c3a840076e
refactor: replace the deprecated js api 2023-02-15 04:53:40 +08:00
Cotes Chung
3b89bf1df2 chore(release): 5.5.2 2023-01-31 00:07:24 +08:00
Cotes Chung
8bc9d25434 chore(release): 5.5.1 2023-01-30 06:15:34 +08:00
Cotes Chung
4b6722124d chore(release): 5.5.0 2023-01-30 05:04:10 +08:00
Cotes Chung
7887b5ab62
chore(release): 5.4.0 2022-12-28 01:28:09 +08:00
Cotes Chung
ab16fdc7fc
feat: add shimmer background when image loads 2022-12-24 23:51:47 +08:00
Cotes Chung
ca41c7ebff
chore(deps): use lazysizes to load images 2022-12-09 07:36:06 +08:00
Cotes Chung
fe2a3cdf51
chore(release): 5.3.2 2022-11-22 21:08:47 +08:00
Cotes Chung
e107a2e759
chore(release): 5.3.1 2022-10-25 21:18:19 +08:00
Cotes Chung
339293d0d7
style: 4 space indents to the JS files 2022-10-25 19:26:44 +08:00
Cotes Chung
1fd665bf49
perf: modify checkbox icon with Liquid
Also optimize list padding start
2022-10-24 21:06:02 +08:00
Cotes Chung
b6a1a4172e
style(js): fix code style in JS 2022-10-22 03:26:22 +08:00
Cotes Chung
6852ceb280
refactor: remove site config option prefer_datetime_locale 2022-10-19 04:22:12 +08:00
Cotes Chung
3878815852
chore(release): 5.3.0 2022-09-23 21:11:29 +08:00
Cotes Chung
856ef11487
chore(release): 5.2.1 2022-06-18 00:09:22 +08:00
Cotes Chung
baad801066
chore(release): 5.2.0 2022-06-09 17:59:27 +08:00