How voluxium/hub works
This is an Astro-powered Chinese-language article site: Markdown posts are organized by date and category, then presented through home, listing, category, and individual-post routes. Shared layouts and UI components support navigation and reading. Astro’s content configuration defines post metadata, while the configured Markdown processor adds math rendering and image captions. The README is an untouched Astro starter description, and page/layout source was not sampled, so detailed component wiring is uncertain and omitted.
Main entry points: index.astro Home page · layouts Site layouts · [slug].astro Post detail · [...page].astro Post listings
Components 22
Content and processing
- Markdown posts
src/content/posts - Posts collection
src/content.config.ts - Markdown processing
astro.config.mjs - Figure captions
src/plugins/rehypeFigureCaption.mjs - Post utilities
src/utils/posts.ts
Site routes
- Home page
src/pages/index.astro - Post detail
src/pages/post/[slug].astro - Post listings
src/pages/posts/[...page].astro - Category listings
src/pages/posts/category - Source page
src/pages/source.astro
Shared presentation
- Site layouts
src/layouts - Navigation
src/components/Nav.astro - Article lists
src/components/ArticleListSection.astro - Article card
src/components/ArticleCard.astro - Pagination
src/components/Pagination.astro - Article navigation
src/components/ArticleNav.astro - Table of contents
src/components/Toc.astro - Calendar
src/components/CalendarWidget.astro - Profile card
src/components/ProfileCard.astro - Banner
src/components/Banner.astro - Theme toggle
src/components/ThemeToggle.astro
Other components
- Site visitor
Connections 28
- Site visitor → Home page: opens
- Site visitor → Post detail: opens
- Site visitor → Post listings: opens
- Site visitor → Category listings: opens
- Site visitor → Source page: opens
- Markdown posts → Posts collection: loaded by
- Posts collection → Markdown processing: provides posts
- Markdown processing → Figure captions: runs plugin
- Home page → Site layouts: renders
- Post detail → Site layouts: renders
- Post listings → Site layouts: renders
- Category listings → Site layouts: renders
- Source page → Site layouts: renders
- Home page → Post utilities: uses
- Post detail → Post utilities: uses
- Post listings → Post utilities: uses
- Category listings → Post utilities: uses
- Site layouts → Navigation: renders
- Site layouts → Theme toggle: renders
- Home page → Article lists: renders
- Article lists → Article card: renders
- Post listings → Pagination: renders
- Category listings → Pagination: renders
- Post detail → Article navigation: renders
- Post detail → Table of contents: renders
- Home page → Calendar: renders
- Home page → Profile card: renders
- Home page → Banner: renders