Repository navigation
✨ Highlights
This major release upgrades Astro Devosfera to Astro 7, introduces full bilingual architecture (en / es), elevates the article reading experience, and overhauls the build pipeline with zero-dependency utilities and native unit testing.
🚀 New Features
Bilingual Architecture (en / es)
- Complete parallel route tree for English (
/) and Spanish (/es/*), including home, posts, archives, tags, galleries, about, and localized RSS feeds (/rss.xmland/es/rss.xml). - Header & mobile drawer language switcher chip (
EN/ES) withlocalStoragepreference persistence and localized404fallback detection. - Automatic
hreflang(en,es,x-default) alternate tags and localized Open Graph / JSON-LD metadata. - Locale-organized starter content under
src/data/blog/{en,es}/andsrc/data/galleries/{en,es}/.
Enhanced Reading Experience
- Distraction-Free Reading Mode (
Rshortcut): Minimalist article view with floating controls pill, Sans/Serif typography toggle,80%–150%font scaling, andlocalStoragepersistence. - Sticky Desktop & Collapsible Mobile Table of Contents: Sidebar
<TableOfContents>withIntersectionObserverscrollspy and sidebar Share / Copy URL widget on desktop (lg+), plus an expandable<details>TOC with auto-close on mobile/tablet (< lg). - Scroll-Driven Reading Progress Bar & Resume Toast: Native CSS scroll-timeline progress bar (with JS fallback) and automatic "Continue reading from where you left off" bookmark toast.
- Hybrid Post Navigation: Pairs the chronological previous post with a tag-scored Recommended Read card at the bottom of each article.
Unified /posts Discovery View
- Replaced paginated
/posts/[...page]and standalone/searchroutes with a unified 3-column/postsgrid featuring an embedded Pagefind search toolbar. - Added quick top-tag filter chips and progressive "Load more" pagination (
SITE.postPerPage) to keep initial DOM rendering lightweight as archives grow.
Navigation, UI & Deployment Polish
- Redesigned sticky
<Header>with a "More options" popover (Tags,Archives,Galleries,Theme) and floating glass<MobileMenu>drawer. - Reusable
<AuroraHero>section headers across/posts,/archives,/tags,/galleries, and/about. - Consolidated
<GalleryLightbox>component using native<dialog>with edge-aware navigation, backdrop close, scroll-lock reset, and View TransitionsAbortControllercleanup. - Added
vercel.jsonwith production caching/security headers and defaultX-Robots-Tag: noindex, nofollowto protect new forks from unintended search indexing until launch.
⚡ Astro 7, Performance & Architecture
- Astro 7 Migration: Upgraded to
astro ^7.4.12(Vite 8 / Rolldown & Oxc),@astrojs/mdx ^8.1.6,@astrojs/sitemap ^3.7.5,@astrojs/rss ^4.0.19,tailwindcss ^4.3.5,eslint ^10.15.0,eslint-plugin-astro ^3.2.1, andprettier-plugin-astro ^1.1.2. - Zero-Dependency Native Utilities: Removed
dayjs,slugify,lodash.kebabcase,remark-toc, andremark-collapse, replacing them with nativeDate.now()/IntlAPIs and Unicode NFKDslugifyStr. - Build & Asset Optimizations:
- Enabled HTML-aware
compressHTML: true, viewport prefetching, and connection-aware smart prefetching (src/scripts/smart-prefetch.ts). - Deduplicated route generation in
src/utils/staticPaths.ts(eliminating redundant per-page collection sorting during SSG) and centralized gallery asset resolution insrc/utils/gallery.ts. - In-memory TTF font buffer caching (
src/utils/loadOgFont.ts), dynamic hostname resolution, and localized author labels in Satori OG image generation. - Optimized card cover images via native Astro
<Image />(AVIF), vectorized logo SVG, and removed unusedcascadia-code.woff2(-218 KB), dead components (Tag.astro,Main.astro,EditPost.astro), and slow dynamic site/tag OG endpoints.
- Enabled HTML-aware
- Technical SEO: Added Schema.org JSON-LD (
BlogPosting,WebSite,ProfilePage,ImageGallery,BreadcrumbList), relational pagination links, and conditional sitemap regex exclusions for/archivesand/galleries. - Native Unit Test Suite: Added zero-dependency Node.js 24 test suite (
pnpm test) coveringslugifyStr,getReadingTime,i18n,buildBreadcrumbItems,getPath, andpostFilter. - Updated Documentation: Refreshed
README.mdandGALLERIES.mdfor Astro 7, bilingual paths, reading features, and new commands.
⚠️ Breaking Changes & Upgrade Notes
- Node.js Requirement: Upgraded minimum runtime to Node.js 22.12+ (Node.js 24+ for running
pnpm test). - Bilingual Content Paths: Blog posts and galleries are now organized under locale folders:
src/data/blog/en/&src/data/blog/es/src/data/galleries/en/<slug>/&src/data/galleries/es/<slug>/
- Removed Routes & Schema Fields:
- Standalone
/searchand paginated/posts/[...page]routes were removed in favor of the unified/postsview and global⌘Ksearch modal. - Unused frontmatter fields (
timezone,hideEditPost,canonicalURL) andremark-toc/remark-collapsewere removed (the Table of Contents is now rendered natively by<TableOfContents>). - Dynamic
/og.pngand/tags/[tag]/og.pngendpoints were removed in favor of the static fallbackpublic/devosfera-og.webp(post OG images remain dynamically generated).
- Standalone
Full Changelog: v1.3.0...v2.0.0