Using This Theme

How the Hexo theme maps onto this Astro project, and where to customise things.

聆听文章 0:00

This project is an Astro port of the t9t-blog-hexo Hexo theme. The original EJS partials map onto Astro components:

HexoAstro
layout/layout.ejs + _partial/head.ejs + _partial/footer.ejssrc/layouts/BaseLayout.astro
_partial/header.ejssrc/components/Header.astro
_partial/header-post.ejssrc/components/PostHeader.astro
_partial/menu.ejssrc/components/Menu.astro
_partial/article-excerpt.ejssrc/components/PostCard.astro
layout/index.ejssrc/pages/index.astro
layout/post.ejssrc/pages/[...slug].astro

Configuration

Site-wide options live in src/config.ts: title, subtitle, description, author, menu, and the giscus / Google Analytics settings (empty by default, so both integrations are off until you fill them in).

Content

Posts are markdown files in src/content/blog/. Frontmatter is validated in src/content.config.ts, so a missing title or date fails the build with a clear error.

Styling

The three original stylesheets are reused verbatim and imported by BaseLayout.astro:

CC BY 4.0

© 2026 姜一一的博客

Instagram 𝕏 GitHub