You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Astro
Astro 是一个内容驱动的 Web 框架。它相比 Valaxy 针对博客的定位拥有更多的泛用性。
事实上,Valaxy 对于博客的构建与 Astro 是两种技术路线。
Valaxy 使用基于 Vue 的 Vite SSG(静态站点生成)功能来构建博客。
Valaxy 目前采用的是单页 SSG,它会为每个博客页面生成一个单独的 HTML 文件,而从任一入口进入后,除了当前页面内容的展示外,也会将其激活为 SPA。
而在此之后它只需要部分地更新页面内容,而无需重新加载整个页面。
用比喻的话来说,Astro 的每个页面都是一个独立的岛屿,站点则是群岛。
而 Valaxy 的站点更像是一个整体的星球,每个页面都是进入星球的入口。
这是两种架构的取舍,毫无疑问,Astro 的首屏加载速度会更快,但切换页面时可能存在部分的体验中断。
而 Valaxy 的首屏加载介于 Astro 与传统的 SPA 之间,但切换页面时则可拥有 SPA 的体验。
Astro:
2025-08-03.02.18.30.mov
Valaxy:
2025-08-03.02.19.41.mov
Beta Was this translation helpful? Give feedback.
All reactions