feat: performance optimizations and ui improvements (#26)

* test: remove astro-compress

* test: remove astro-compress

* perf: add astro-compress, optimize resource preloading

* perf: moving photoswipe styles to head with non-blocking preload strategy

* test: disable astro-compress

* test: enable astro-compress

* fix: typescript hints

* chore: adjust toc style and gsap animation

* style: optimize gsap animation logic, adjust toc style

* chore: adjust toc style

* fix: photoswipe transition position offset caused by scrollbar-gutter
This commit is contained in:
radishzz 2025-05-26 20:21:38 +01:00 committed by GitHub
parent 054aa85509
commit 47e1df9b3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 64 additions and 69 deletions

View file

@ -144,18 +144,16 @@ const { Content, headings, remarkPluginFrontmatter } = await render(post)
<!-- Tags -->
{post.data.tags && post.data.tags.length > 0 && (
<div id="gsap-post-page-tags">
<div class="uno-decorative-line"></div>
<div class="uno-tags-wrapper">
{post.data.tags.map((tag: string) => (
<a
href={getTagPath(tag, lang)}
class="uno-tags-style"
>
{tag}
</a>
))}
</div>
<div class="uno-decorative-line"></div>
<div class="uno-tags-wrapper">
{post.data.tags.map((tag: string) => (
<a
href={getTagPath(tag, lang)}
class="uno-tags-style"
>
{tag}
</a>
))}
</div>
)}
<!-- Comments -->