Commit Graph

144 Commits

Author SHA1 Message Date
Carlos Company
77391ed9ac refactor: replacing hardcoded style for existing variable (#525) 2025-08-24 16:32:34 +08:00
misaka10987
c6f27526ec fix: automatically wrap social links list (#604) 2025-08-24 16:30:54 +08:00
ZyPLJ
4c0618b677 fix(utils): replace map with forEach to resolve biome lint error | 解决Github Action Biome 代码检查错误 (#601)
* fix(utils): replace map with forEach to resolve biome lint error

* fix(utils): replace map with forEach in getCategoryList for clarity

* fix(utils): specify radix parameter in Number.parseInt for clarity

---------

Co-authored-by: L4Ph <me@l4ph.moe>
2025-08-21 17:44:33 +09:00
Carlos Company
f0942ee8f7 Fixing Theme Color Selection Reset Button Animation (#563)
Some checks failed
Code quality / quality (push) Failing after 12s
Build and Check / Astro Check for Node.js 22 (push) Failing after 5s
Build and Check / Astro Check for Node.js 23 (push) Failing after 4s
Build and Check / Astro Build for Node.js 22 (push) Failing after 4s
Build and Check / Astro Build for Node.js 23 (push) Failing after 4s
There was no bug for this, but if you display the theme color selector on safari on iOS and the reset to default theme color button is visible, you can see that after the fade in animation finished to show the popup there is an abrupt change of position of this button.
2025-08-20 21:41:19 +09:00
rushii
ec4dbfd1e8 fix(TOC): hide active overlay when no sections active (#586)
Some checks failed
Code quality / quality (push) Failing after 9s
Build and Check / Astro Check for Node.js 22 (push) Failing after 5s
Build and Check / Astro Check for Node.js 23 (push) Failing after 4s
Build and Check / Astro Build for Node.js 22 (push) Failing after 4s
Build and Check / Astro Build for Node.js 23 (push) Failing after 4s
* fix(TOC): hide active overlay when none active

* fix indentation
2025-08-09 11:14:35 +08:00
adaxiik
2b9e9ff903 fix: missing toc if base url is set (#550)
* fix missing toc if base url is set

* sort imports
2025-07-27 12:13:17 +08:00
haappi
94c2ca3591 use correct s thingy in english for words & reading time (#503)
Some checks failed
Code quality / quality (push) Failing after 10s
Build and Check / Astro Check for Node.js 22 (push) Failing after 4s
Build and Check / Astro Check for Node.js 23 (push) Failing after 5s
Build and Check / Astro Build for Node.js 22 (push) Failing after 5s
Build and Check / Astro Build for Node.js 23 (push) Failing after 5s
Co-authored-by: L4Ph <me@l4ph.moe>
2025-06-18 23:32:29 +09:00
Katsuyuki Karasawa
9130765d45 Biome 2.0 with format (#510)
* execute migrate command

* migrate to v2

* update config

* supress linter error
2025-06-18 23:01:28 +09:00
Katsuyuki Karasawa
9de7aa10e4 fix: refactor onMount to avoid unnecessary async calls for search (#481)
Some checks failed
Code quality / quality (push) Failing after 6s
Build and Check / Astro Check for Node.js 22 (push) Failing after 5s
Build and Check / Astro Check for Node.js 23 (push) Failing after 5s
Build and Check / Astro Build for Node.js 22 (push) Failing after 5s
Build and Check / Astro Build for Node.js 23 (push) Failing after 4s
* fix: refactor onMount to avoid unnecessary async calls for search

* Production debugging to check the console

* feat: enhance Pagefind integration with improved loading checks and error handling

* fix: improve Pagefind integration with event handling for loading and errors
2025-06-06 21:11:03 +09:00
Saica
ee48c2f09d feat: introduce Expressive Code for code block rendering (#476)
* feat: improve code block feature with Expressive Code

* docs: add example Markdown file for visual review

* feat: improve styles of Expressive Code

* fix: errors from the merging

* chore: formatting

* chore: update config

* chore: update dependencies

* fix: fix build error

* fix: minor fixes

* fix: style tweaks

* docs: update example post

* fix: isolate copy button timeouts to avoid cross-button interference

---------

Co-authored-by: Hasenpfote <Hasenpfote36@gmail.com>
2025-06-03 22:41:36 +08:00
saicaca
559a324ae5 fix: fix type errors
Some checks failed
Code quality / quality (push) Failing after 4s
Build and Check / Astro Check for Node.js 22 (push) Failing after 4s
Build and Check / Astro Check for Node.js 23 (push) Failing after 4s
Build and Check / Astro Build for Node.js 22 (push) Failing after 5s
Build and Check / Astro Build for Node.js 23 (push) Failing after 4s
2025-05-30 20:34:35 +08:00
saicaca
dde7835dd7 fix: unable to list uncategorized posts on the archive page (fix #471) 2025-05-30 19:42:45 +08:00
saica.go
2d89e4d53f feat: make archive page dynamic (#469)
Some checks failed
Code quality / quality (push) Failing after 4s
Build and Check / Astro Check for Node.js 22 (push) Failing after 4s
Build and Check / Astro Check for Node.js 23 (push) Failing after 4s
Build and Check / Astro Build for Node.js 22 (push) Failing after 4s
Build and Check / Astro Build for Node.js 23 (push) Failing after 3s
2025-05-30 00:21:07 +08:00
Katsuyuki Karasawa
2b3d7cf304 fix: Trim whitespace from category and tag names in URL generation (#437)
Some checks failed
Code quality / quality (push) Failing after 4s
Build and Check / Astro Check for Node.js 22 (push) Failing after 4s
Build and Check / Astro Check for Node.js 23 (push) Failing after 4s
Build and Check / Astro Build for Node.js 22 (push) Failing after 4s
Build and Check / Astro Build for Node.js 23 (push) Failing after 3s
2025-05-05 09:57:34 +09:00
Katsuyuki Karasawa
7f0c109b17 fix: Correct template literals for aria-label/class/style attributes (#435)
Some checks failed
Code quality / quality (push) Failing after 4s
Build and Check / Astro Check for Node.js 22 (push) Failing after 4s
Build and Check / Astro Check for Node.js 23 (push) Failing after 4s
Build and Check / Astro Build for Node.js 22 (push) Failing after 5s
Build and Check / Astro Build for Node.js 23 (push) Failing after 4s
* fix: Correct template literals for aria-label attributes in PostMeta and Pagination components

* fix: Update template literals to use correct syntax in multiple components
2025-05-02 06:49:07 +09:00
Katsuyuki Karasawa
11535a9709 Fix category with reserved character (#431)
Some checks failed
Code quality / quality (push) Failing after 3s
Build and Check / Astro Check for Node.js 22 (push) Failing after 4s
Build and Check / Astro Check for Node.js 23 (push) Failing after 5s
Build and Check / Astro Build for Node.js 22 (push) Failing after 4s
Build and Check / Astro Build for Node.js 23 (push) Failing after 4s
* fix: Encode category in URLs to handle reserved characters

* fix: Encode category names in static paths to handle reserved characters
2025-05-01 02:24:53 +09:00
Katsuyuki Karasawa
3194dfc521 fix: Encode URI components for tag links to handle reserved characters (#430)
* fix: Encode URI components for tag links to handle reserved characters

* delete: Remove reserved character test markdown file
2025-05-01 02:02:52 +09:00
jump-and-jump
fc0d3fc0e2 fix: Remove useless calls during initialization (#295)
* fix: Remove useless calls during initialization

* fix: refactor search component and enhance search functionality

* fix: clean up code formatting and improve readability in Search component and global types

---------

Co-authored-by: jump-and-jump <984292420@qq.com>
Co-authored-by: L4Ph <4ranci0ne@gmail.com>
2025-04-28 20:39:53 +09:00
jump-and-jump
0b5d290d30 style: The search panel exceeds the entire page (#302)
Some checks failed
Code quality / quality (push) Failing after 4s
Build and Check / Astro Check for Node.js 22 (push) Failing after 5s
Build and Check / Astro Check for Node.js 23 (push) Failing after 5s
Build and Check / Astro Build for Node.js 22 (push) Failing after 4s
Build and Check / Astro Build for Node.js 23 (push) Failing after 4s
2025-04-28 19:49:15 +09:00
foxton9
772f0a9a5e fix: TOC warning on home page (#402)
- conditionally render TOC for posts route;
- change warn to debug.
2025-04-28 19:48:36 +09:00
Carlos Company
9a21c0e9e1 Merge pull request #309 from CarlosCB1986/patch-4
Fixing License component layout overflow in small screens
2025-04-09 21:24:45 +09:00
L4Ph
66f3ee8543 refactor: replace 'any' type with CollectionEntry for better type safety in PostCard and PostPage components 2025-04-09 21:17:50 +09:00
jump-and-jump
a19450ffb2 fix: The previous and next pages carry baseurl (#292)
Some checks failed
Code quality / quality (push) Failing after 11s
Build and Check / Astro Check for Node.js 22 (push) Failing after 30s
Build and Check / Astro Check for Node.js 23 (push) Failing after 3s
Build and Check / Astro Build for Node.js 22 (push) Failing after 4s
Build and Check / Astro Build for Node.js 23 (push) Failing after 4s
2025-04-08 23:27:12 +09:00
Katsuyuki Karasawa
286b050fa8 format all code (#386) 2025-04-08 23:08:31 +09:00
Katsuyuki Karasawa
7ea2f7f40f refactor: remove unused props from components and improve error handling in about page (#385) 2025-04-08 22:44:52 +09:00
jump-and-jump
c8142d0ac5 fix: multiple registration events lead to incorrect click events (#305) 2025-04-08 21:49:52 +09:00
Matas
46415dec88 fix: svelte component definition in the html code to use client:only="svelte" (#336) 2025-04-08 21:37:59 +09:00
Matas
ac75858fd2 fix: check whether the component is defined already (#337)
Co-authored-by: Matas <automatasz@users.noreply.github.com>
Co-authored-by: Katsuyuki Karasawa <4ranci0ne@gmail.com>
2025-04-05 23:48:47 +09:00
会做饭的二哈
477d184fc5 Update WidgetLayout.astro (#333)
防止重复注册报错
2025-04-05 23:45:33 +09:00
Katsuyuki Karasawa
b016bd096c fix: biome linter error (#369)
* fix(remark-excerpt): change loop variable to const for better readability

* fix(rehype-component-github-card): correct string quotes for consistency in title element

* fix(remark-directive-rehype): update biome-ignore comment for clarity on linting rule

* fix(rehype-component-admonition): use optional chaining for properties check and improve formatting

* fix(Pagination): improve equality checks and enhance code readability

* fix(TOC): correct equality check for consistency in removeTailingHash function

* fix(ImageWrapper): update import path to use 'node:path' for consistency

* fix(PostCard): update import path to use 'node:path' for consistency
2025-04-01 20:29:38 +09:00
jump-and-jump
fdbd0c56bf refactor: remove useless code 2025-01-25 22:55:38 +08:00
saicaca
1b4b859e87 fix: remove obsolete astro:after-swap listener
which can be triggered in Astro 5.0 even with Swup, causing duplicate initialization
2025-01-17 03:55:30 +08:00
Zulfikar Ali Muzakir
2244a77935 fix: search component missing from PROD environment (#268)
Update search component to only be client side for svelte.
2025-01-13 00:55:05 +08:00
Carlos Company
baa894183b fix: add padding to ButtonLink badge div (#251)
When the number of posts in a category reaches 4 or even 3 digits the component does not look correct.
2024-12-31 17:28:17 +08:00
foxton9
589c593e53 fix: revise TOC logic (#252)
fix bugs in fallback, markVisibleSection; refine rAF and connectedCb
2024-12-31 17:27:40 +08:00
Carlos Company
4483433dd7 fix: removing pointer-events from BackToTop wrapper (#259)
The back-to-top wrapper element is hidden but blocks hover events from other elements that may overlap in the same position.
NOTE that this does not affect any component in the current design. I happened to notice this on a different fork where it was causing an issue and therefore I suggest the change but feel free to ignore this if you think is not relevant enough or could cause problems with the back to top component.
2024-12-31 17:01:47 +08:00
saicaca
cbf17e880d fix: fix incorrect TOC highlight (fix #249) 2024-12-07 21:59:17 +08:00
saicaca
8cd04d9ceb fix: fix TOC highlight appearing on pages without a TOC 2024-12-07 18:42:05 +08:00
saicaca
94184f381b fix: fix TOC highlight for non-ASCII titles (#246) 2024-12-07 04:18:54 +08:00
saicaca
eb3f9f2676 fix: fix incorrect position of TOC indicator 2024-12-06 20:53:24 +08:00
saicaca
9ab977fe4c feat: improve the style of the TOC component 2024-12-06 19:20:58 +08:00
foxton9
e816120045 feat: TOC highlight and scroll sync (#216) 2024-12-06 19:20:57 +08:00
kinho
b604cdf18c feat: add post update date (#243)
* feat: Add article update date

* feat:
1.Hide update time on the homepage;
2.Replace update icon;

* remove iconify-json/mdi

---------

Co-authored-by: liangjianhao <jianhao.liang@sz-sanjiang.com>
2024-12-04 19:29:35 +08:00
saicaca
079abbc965 refactor: css cleanup and style tweaks 2024-12-02 16:02:39 +08:00
Katsuyuki Karasawa
ff9e82091a refactor: upgrade to Svelte v5 (#212)
* upgrade astro dependencies

* migration to Svelte 5

* Resolution of module version

* fix migrate script error

* fix migrate error comment

* fix Stylus format

* add intellisense for typescript

* Upgrading astrojs/svelte and svelte, and organizing dependencies

* Delete the incorrect settings.

* upgrade astro

* Fixed an error that occurred due to svelte.config.ts using unsupported features.
2024-11-30 14:59:51 +08:00
Joey Chen
87547fca86 feat: use server-side date to generate copyright year (#217) 2024-11-09 11:58:58 +08:00
saicaca
e1a98c4149 fix: TOC component overflows the webpage (#209) 2024-10-28 18:44:06 +08:00
saicaca
1b652f686d feat: add configurations for TOC component 2024-10-28 00:45:16 +08:00
saicaca
2c716931f8 refactor: code cleanup 2024-10-27 18:29:06 +08:00
saicaca
2b9f6bc5bb feat: UX improvements for the TOC component 2024-10-27 18:18:22 +08:00