Cotes Chung
5cc9dc66ac
feat(ui): optimize design of PWA update notification ( #2757 )
2026-06-20 05:42:07 +08:00
Cotes Chung
7496dd41fa
feat(theme): persist user theme preferences ( #2756 )
...
- Migrate theme persistence from `sessionStorage` to `localStorage`
- Rename theme HTML attribute to `data-bs-theme` for Bootstrap compatibility
- Trim and compile CSS according to the chosen theme mode
2026-06-17 23:20:12 +08:00
Cotes Chung
ceb2a41463
fix(giscus): synchronize theme state during lazy loading ( #2742 )
...
Previously, theme switch events were lost if triggered before the
Giscus iframe was fully loaded (e.g., when deferred by lazy loading
or before the client script executed). This resulted in Giscus
rendering with the outdated initial theme once it finally appeared
in the viewport.
This commit handles these edge cases by:
1. Updating the `data-theme` attribute on the Giscus script node
if the iframe hasn't been created yet.
2. Modifying the `theme` query parameter in the iframe's `src` URL
if it is currently in a pending/lazy-loading state.
2026-05-23 23:00:48 +08:00
Cotes Chung
38232120b7
fix(pwa): avoid iOS status bar overlapping PWA content ( #2173 )
...
Fixes #2173
2026-05-16 14:39:58 +08:00
Cotes Chung
fb3aa94c1f
chore: remove funding
2026-05-16 14:37:04 +08:00
Cotes Chung
832b24729d
refactor(deps): update CDN URLs to follow production best practices ( #2740 )
2026-05-15 15:38:08 +08:00
Cotes Chung
97a537e692
chore(deps): bump mathjax from 3.2.2 to 4.x
2026-05-15 15:22:19 +08:00
Cotes Chung
1344e90246
docs: update readme
2026-05-15 15:17:06 +08:00
Cotes Chung
2cfb4bba88
chore: update github issue template
2026-05-15 15:01:34 +08:00
Cotes Chung
6245dec754
docs: improve readme
2026-04-04 02:08:24 +08:00
Cotes Chung
d760823619
Merge branch 'master' into production
2026-03-16 04:12:56 +08:00
Cotes Chung
da4b8cd168
chore(deps): update packages to latest version
...
@fortawesome/fontawesome-free 7.1.0 -> 7.2.0
dayjs 1.11.18 -> 1.11.20
mermaid 11.12.0 -> 11.13.0
2026-03-16 04:11:41 +08:00
Cotes Chung
8893a98191
ci: update ruby version to 3.4
...
Ruby 3.1 and 3.2 are now EOL
See: https://www.ruby-lang.org/en/downloads/branches/
2026-03-15 19:57:33 +08:00
Cotes Chung
6afe5a6d7b
refactor: correct typos in comments and identifiers ( #2681 )
...
- Rename `loadTooptip` to `loadTooltip` in tooltip-loader.js, components.js, and basic.js
- Fix grammar: "This script make" → "This script makes" in search-display.js
- Fix "HomgPage" → "HomePage" in post-paginator.html
- Fix "CND URL" → "CDN URL" in media-url.html
- Fix "locale-dateime.js" → "locale-datetime.js" in datetime.html
- Fix "LaTex" → "LaTeX" in language-alias.html
- Fix "exist <a> tag" → "existing <a> tag" in refactor-content.html
- Fix "Archvies" → "Archives" in _archives.scss
- Fix "underlinke" → "underline" in _syntax.scss
2026-03-14 19:01:21 +08:00
Cotes Chung
8fd56560a4
docs: fix typos in tutorial
2026-03-14 18:57:52 +08:00
Cotes Chung
cc1d44ee3e
build(gh-actions): enable dependabot to scan the starter workflow
2026-03-12 21:37:15 +08:00
Cotes Chung
ce14e1a087
chore: update ESLint dependencies and improve js style
2026-03-12 21:37:03 +08:00
Cotes Chung
477394b744
style: interpolate sass variable in CSS custom property
2026-03-12 21:37:03 +08:00
Cotes Chung
96da25abbd
build(dev-deps): upgrade node packages
2026-03-12 21:37:03 +08:00
Cotes Chung
0fbaa5359b
chore: reduce optional config defaults
2026-01-03 07:42:17 +08:00
Cotes Chung
4950edc75e
Merge branch 'master' into production
2025-10-27 05:48:01 +08:00
Cotes
66bf232951
fix: avoid duplicate base URL for homepage preview images ( #2568 )
2025-10-27 05:39:39 +08:00
Cotes Chung
37377a43e0
Revert "refactor: avoid converting media‘s relative paths to absolute paths ( #2552 )"
...
This reverts commit b3d7db3cda .
2025-10-27 05:16:47 +08:00
Cotes Chung
078cf86f79
Merge branch 'master' into production
2025-10-20 07:13:19 +08:00
Cotes Chung
45cb428b01
build(deps): upgrade dependencies
2025-10-20 07:11:29 +08:00
Cotes Chung
3578111ecd
refactor: resolve various StyleLint warnings
2025-10-20 06:47:30 +08:00
Cotes Chung
022b963403
build(dev-deps): upgrade dependencies
2025-10-20 06:47:29 +08:00
Cotes
aa832c29de
refactor: update favicon files and documentation ( #2558 )
2025-10-20 02:55:43 +08:00
Cotes
604528e3ce
fix(search): restore full-text search for posts with description ( #2557 )
2025-10-20 02:24:40 +08:00
Cotes
b3d7db3cda
refactor: avoid converting media‘s relative paths to absolute paths ( #2552 )
2025-10-17 00:02:12 +08:00
Cotes Chung
a385ffabff
chore: improve ESLint config
2025-10-14 04:54:48 +08:00
Cotes Chung
f51641b541
chore: remove deprecated URL
2025-10-14 04:53:51 +08:00
Cotes
221ca9f52b
fix: restore blurry animation for homepage LQIP ( #2551 )
2025-10-14 04:36:02 +08:00
Cotes Chung
eaf5e57449
ci: change filter script to ESM format
...
Because `"type": "module"` was added to `package.json`
2025-07-31 03:37:32 +08:00
Cotes Chung
29bf95e9c7
style: change css color functions to use modern notation
...
- `rgba()` → `rgb()`
2025-07-27 21:42:49 +08:00
Cotes Chung
648398c63c
ci: migrate eslint and stylelint from codacy to gh-actions
2025-07-27 21:42:49 +08:00
Cotes Chung
b855e8b6b4
style: unify quote style in rollup config
2025-07-27 00:55:54 +08:00
Cotes Chung
49519d13e5
chore: complete ESLint v9 configuration
2025-07-27 00:53:58 +08:00
Cotes Chung
81886b11c0
Merge branch 'hotfix/7.3.1' into production
2025-07-26 20:23:38 +08:00
Cotes Chung
7615d72e93
fix: escape special JSON characters in search results ( #2481 )
...
Also restore full-text search
2025-07-26 20:22:30 +08:00
Cotes Chung
09948da235
Merge branch 'production'
2025-05-18 21:32:02 +08:00
Cotes Chung
d84b72706a
Merge branch 'master' into production
2025-05-18 21:16:09 +08:00
Cotes Chung
519e4f193a
chore: upgrade dependencies to the latest version ( #2409 )
2025-05-18 21:14:56 +08:00
Cotes Chung
d0f8f9553e
fix: improve accuracy of moving img element classes ( #2399 )
2025-05-11 22:19:18 +08:00
Cotes Chung
401e2af0f8
fix: avoid mathjax loading failure on page refresh ( #2389 )
2025-05-05 11:55:48 +08:00
Cotes Chung
ada38aad96
chore: avoid auto-formatting liquid and sass mixed code
2025-05-05 11:15:08 +08:00
Cotes Chung
61ae6cced8
chore(dev-deps): add eslint config file
2025-05-05 11:14:07 +08:00
Cotes Chung
9f38a2dead
refactor: move the path of theme.js
2025-05-03 16:18:52 +08:00
Cotes Chung
23d953c313
chore(deps): remove plugin jekyll-redirect-from
...
Discussed in #2313
2025-05-03 16:14:50 +08:00
Cotes Chung
7708adbf30
fix: recognize global theme mode ( #2357 )
2025-04-16 18:08:43 +08:00
Cotes Chung
0eb7efa7f5
fix(search): avoid missing spaces between paragraphs in search results ( #2199 )
...
- Use a common post-snippet for search results to avoid line break issues
- Reduce Jekyll include files to speed up the build
- Remove outdated key from search.json
2025-01-20 21:27:18 +08:00
Cotes Chung
774ee93d78
Release v7.2.4 ( #2141 )
2024-12-22 03:21:28 +08:00
Cotes Chung
8a4d0bc4ee
fix(ui): left borderline of TOC is notched ( #2140 )
2024-12-22 03:11:20 +08:00
Cotes Chung
1b93f6db9b
docs: update the setting name for the comments
2024-12-22 02:32:03 +08:00
Cotes Chung
32051dad03
fix: toc not visible when switching from mobile to desktop mode ( #2139 )
2024-12-22 02:29:29 +08:00
Cotes Chung
e741aa43cf
Merge branch 'hotfix/7.2.3' into production
2024-12-15 21:04:09 +08:00
Cotes Chung
e0c3fafa47
fix(ui): slow script loading hides TOC fade-up effect in desktop ( #2120 )
2024-12-15 14:51:51 +08:00
Cotes Chung
1b4e318dc1
fix(ui): gap between TOC entries is inconsistent ( #2119 )
...
In desktop mode, H2 and the first sub-level H3 in the TOC are too close.
2024-12-15 14:43:07 +08:00
Cotes Chung
2f00d41861
fix: refreshing mermaid theme may fail ( #2113 )
2024-12-12 01:24:37 +08:00
Cotes Chung
d87c2de675
Merge branch 'hotfix/7.2.2' into production
2024-12-07 00:57:46 +08:00
Cotes Chung
f55cc31dbd
fix: js files in subdirectories are excluded from the site output ( #2101 )
2024-12-07 00:55:47 +08:00
Cotes Chung
6c112c641a
Merge branch 'master' into production
2024-12-05 21:32:17 +08:00
Cotes Chung
976e1a184b
fix(build): exclude purgecss.js from output files ( #2090 )
2024-12-05 21:28:37 +08:00
Cotes Chung
7ea3545ba3
refactor: reduce the height of the TOC bottom overlay in desktop mode
2024-12-05 21:09:07 +08:00
Cotes Chung
8280adb901
fix(toc): resume fade up animation in desktop mode ( #2085 )
2024-12-03 22:41:28 +08:00
Cotes Chung
4180992272
style: add indentation to js code
2024-12-03 22:22:20 +08:00
Cotes Chung
8e55e4dcb2
build: correct the js rollup watch path ( #2074 )
...
1. Correct the rollup watch path
2. Avoid registering watch listeners redundantly across multiple tasks
2024-12-01 04:20:47 +08:00
Cotes Chung
82ba82e6da
Merge branch 'master' into production
2024-11-28 16:56:02 +08:00
Cotes Chung
5265b03974
feat: support vertical scrolling for toc in desktop mode ( #2064 )
2024-11-28 05:40:57 +08:00
Cotes Chung
11647697bb
build(deps): update dependencies version
2024-11-25 03:55:11 +08:00
Cotes Chung
5756b8fc26
build(deps-dev): upgrade dependencies
...
Close #2058
2024-11-25 00:19:56 +08:00
Cotes Chung
35c794cf58
perf: modular sass architecture ( #2052 )
...
- Modularized the Sass architecture to enhance code maintainability and reduce the output file size
- Replaced deprecated `@import` with `@use` / `@forward`
2024-11-25 00:05:28 +08:00
Cotes Chung
c69914effc
ci: avoid repeated runs of stylelint ( #2057 )
2024-11-24 04:33:46 +08:00
Cotes Chung
65f960c31a
perf: speed up page rendering and jekyll build process ( #2034 )
...
Close stale issues and PRs / stale (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Style Lint / stylelint (push) Has been cancelled
Lint Commit Messages / commitlint (push) Has been cancelled
Build and Deploy / build (push) Has been cancelled
Build and Deploy / deploy (push) Has been cancelled
- Ensure inline scripts execute after the DOM has fully loaded.
- Use Rollup to bundle the theme-mode and Mermaid scripts, reducing the number of Jekyll include snippets.
2024-11-16 22:49:55 +08:00
Cotes Chung
d51345e297
ci: reduce unnecessary pr-filter runs ( #2033 )
...
- Checking the repository of the PR is more effective than checking the label to identify bot-initiated PRs
- This change also allows more flexible PR body definitions for developers with write access to the repository
2024-11-08 22:35:18 +08:00
Cotes Chung
2f844978aa
chore: change stale label to inactive
2024-11-08 22:15:31 +08:00
Cotes Chung
4ef3cd8efc
ci: improve workflow triggers ( #2017 )
...
- Unchain commit-lint and CI
- Even if a commit does not meet the CI path filter, it still needs to lint the commit message.
- Unchain PR filter and CI
- The CI workflow needs to be triggered when the commits in a pull request are modified.
- Allow manual publishing
- Sometimes `semantic-release` will error out due to commit messages referencing discussions, but this does not affect the final RubyGems/GitHub Release. In such cases, manual triggering of the publish process is needed to complete the remaining publishing steps.
2024-10-29 22:56:32 +08:00
Cotes Chung
c7f967529c
ci: skip test for invalid PRs ( #2013 )
2024-10-26 16:58:07 +08:00
Cotes Chung
74ed06321c
ci: block invalid pull requests ( #2010 )
2024-10-25 19:48:11 +08:00
Cotes Chung
d4f7f39ece
refactor: simplify sidebar animation
2024-10-22 11:13:06 +08:00
Cotes Chung
c1bd9eb9ee
refactor: reduce duplicate scss
2024-10-20 13:52:42 +08:00
Cotes Chung
6f461132c0
refactor: improve toc popup module
2024-10-19 21:15:31 +08:00
Cotes Chung
93f616b25d
fix: pagination error when pinned posts exceed the page size ( #1965 )
2024-09-26 22:30:56 +08:00
Cotes Chung
fbcdf8ce85
Merge branch 'master' into production
2024-09-23 19:48:06 +08:00
Cotes Chung
fac6116af1
build(dev-deps): bump 7 dependencies versions
2024-09-23 19:41:28 +08:00
Cotes Chung
5a63244721
fix(pwa): site baseurl not passed to app.js ( #1955 )
2024-09-18 22:32:26 +08:00
Cotes Chung
3ab3b844d2
refactor: replace deprecated meta element
...
Replace `apple-mobile-web-app-capable` with `mobile-web-app-capable`
2024-09-18 21:41:08 +08:00
Cotes Chung
a2bf5dc58e
Merge branch 'master' into production
2024-08-27 15:22:53 +08:00
Cotes Chung
8b7dba71e3
docs: update tutorial and readme
...
Change Dev Containers logo in README:
Simple Icons has removed all Microsoft icons due to copyright restrictions, see <https://github.com/simple-icons/simple-icons/issues/11236 >
2024-08-27 15:18:52 +08:00
Cotes Chung
fc3d101258
build: improve the JS build for PWA ( #1923 )
2024-08-26 16:49:48 +08:00
Cotes Chung
604e01eb36
chore(deps): correct Tocbot version number
2024-08-26 00:49:05 +08:00
Cotes Chung
31e19c6d0f
refactor(ui): standardize the border radius ( #1920 )
...
Impact:
- Increase the border radius of inline code and `<kbd>` tags
- Variable `$base-radius` renamed to `$radius-lg`
2024-08-25 18:17:38 +08:00
Cotes Chung
5f4dab1745
build: upgrade dependencies
2024-08-25 01:18:34 +08:00
Cotes Chung
8cfd721494
build(deps-dev): bump the dev-deps
2024-08-25 00:25:29 +08:00
Cotes Chung
64c7262245
feat(ui): set <kbd> font to 'Lato'
2024-08-25 00:12:28 +08:00
Cotes Chung
707a209424
refactor: improve heading layout
2024-08-25 00:12:00 +08:00
Cotes Chung
80bd7928a0
feat(ui): improve block quote layout
2024-08-24 22:27:35 +08:00
Cotes Chung
bf6c996c4e
chore: move entries in git-ignore
2024-08-21 14:31:22 +08:00
Cotes Chung
99eaf6089e
chore: remove duplicate config
2024-08-21 14:28:57 +08:00
Cotes Chung
efd2941ce0
build: resume platform-specific dependencies
2024-08-21 14:28:14 +08:00